Hey everyone, I,m develop an app. In app my requirement is sent a notifications to registered persons by capturing device token. i’m trying to capture device token with these commands mentioned below
Hey, @Devniz i’m trying with code what sent by you, i’m test the app in android only,it works in android device which have playstore in device. in other devices push an error like"MISSING_INSTANCEID_SERVICE". how to get device token token of the devices those don’t have playstore. please send the solution if you know …
@nani_madepalli You seriously need to read the documentation of cordova-plugin-push, because everything is there. MISSING_INSTANCEID_SERVICE is the error related to a missing service for iOS or Android.
To get the registerId:
push.on(‘registration’, function(data) {
alert(data.registrationId); //You will need this register Id to push on the server-side.
});