Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

invalidRegistration on app server when push to iOS #439

Closed
kascode opened this issue Dec 18, 2015 · 4 comments
Closed

invalidRegistration on app server when push to iOS #439

kascode opened this issue Dec 18, 2015 · 4 comments

Comments

@kascode
Copy link

kascode commented Dec 18, 2015

I used this instruction on Google Cloud Messaging site to set certificates for APNS. I'm on development phase and set only development certificate in Apple Developer Console. Then I set up phonegap-plugin-push and initialized it in JS like that (on deviceready of course):

var pushController = PushNotification.init({
    "android": {
      "senderID": "_",
      "forceShow": true
    },
    "ios": {
      "alert": "true",
      "badge": "true",
      "sound": "true"
    }
  });

pushController.on('registration', function (data) {
  console.log("Push registration", data);
});

So when registration is successful I see registration id of the device in console. But when I try to push message from server to registration id of iOS device I get error response with code invalidRegistration. I'm pushing from node.js server with gcm package.

Same setup works great on Android.

@macdonst
Copy link
Member

@kascode what branch are you using because I have not release GCM support for iOS yet.

@kascode
Copy link
Author

kascode commented Dec 18, 2015

@macdonst I use master branch, just installed plugin with cordova cli from git. That's interesting, if GCM for iOS is not supported in this plugin then how do I get registration id? Is it requested from APNS directly?

@macdonst
Copy link
Member

@kascode yes, wait for the 1.5.0 release. Your issue is a duplicate of #115 so I'm closing it.

@lock
Copy link

lock bot commented Jun 5, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants