Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query on Documentation - Internal server API #377

Open
rsrinivasanhome opened this issue Aug 4, 2020 · 0 comments
Open

Query on Documentation - Internal server API #377

rsrinivasanhome opened this issue Aug 4, 2020 · 0 comments

Comments

@rsrinivasanhome
Copy link

I was referring the following link
https://github.com/raix/push/blob/master/docs/ADVANCED.md

There is a mention of the following internal sever api(s).

// Internal events
    Push.addListener('token', function(currentToken, newToken) {
        // Token is { apn: 'xxxx' } or { gcm: 'xxxx' } or null
        // if newToken is null then the currentToken is invalid
        // if newToken is set then this should replace the currentToken
    });

    // Direct access to the send functions
    Push.sendAPN(userToken, options);
    Push.sendGCM(userTokens, options)

Are the api internal to Raix: Push Do we require to invoke them ? If so can someone point me to a sample.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant