You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pushService.setPrivateKey(privateKey);
pushService.setPublicKey(publicKey);
This made my code working
Also don't forget to convert the payload to json string
The text was updated successfully, but these errors were encountered:
Thanks for the feedback! Just to see if I understand you correctly; are you saying the documentation/example is unclear/misses these calls? If yes, can you point me to the documentation (wiki/readme)?
Yes, in the documentation of the usage example is not been mentioned where to use the private and the public key. Missing calls is after initializing the pushService.
//Instantiate the push service, no need to use an API key for Push API pushService = new PushService(); //set the pivate and the public key pushService.setPrivateKey(privateKey); pushService.setPublicKey(publicKey);
// Send the notification pushService.send(notification);
pushService.setPrivateKey(privateKey);
pushService.setPublicKey(publicKey);
This made my code working
Also don't forget to convert the payload to json string
The text was updated successfully, but these errors were encountered: