Meteor-Community-Packages / raix-push

DEPRECATED: Push notifications for cordova (ios, android) browser (Chrome, Safari, Firefox)
https://atmospherejs.com/raix/push
MIT License
514 stars 197 forks source link

Query on Documentation - Internal server API #377

Open rsrinivasanhome opened 3 years ago

rsrinivasanhome commented 3 years ago

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.