-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Error: NotRigested by GCM with iOS #567
Comments
@macdonst do you have any ideal where the problem is? or I lost any information you need? |
@Demiurga no idea, I tried to reproduce this today and could not. |
Looks like we made some mistake while setting up APNs/GCM @macdonst Is there any instruction/instruction for this setup we can use? |
We are experiencing exactly same issue. I have checked the provisioning file and certificates but could not see if there is anything wrong in the configuration. |
Sorry all, GCM on iOS is like black magic. I can't even find the URL to enable GCM for iOS anymore. You'd think google would make it easier. |
@macdonst you can access https://developers.google.com/mobile/add to enable GCM for iOS. I have enabled the service for the app with App name and iOS bundle id. When enabling GCM for iOS, two certificates were uploaded. The two certificates are also bound to the iOS bundle id. The provisioning file was generated based on the iOS bundle id with the two certificates. I cannot see if there is anything I have done wrongly but am very frustrated it is just not working except the first time then 'NotRegistered' failure again. In the issue #115, @bruno-serfe mentioned, The following certificates are needed.
Do I miss to use the .pem cert so that the push notification does not work? |
@macdonst I have made some progress today to get the notification pushed to an iPad. I have not changed anything apart from adding an attribute gcmSandbox: "true". After the change, the messages were sent successfully. However I don't understand why the message can be sent through GCM sandbox rather than production. Is it because the certificate of my app on the iPad is a development certificate? Besides, I used the server API Key which does not have GCM enabled for iOS. It looks like it doesn't matter to enable the service or not, and through GCM sandbox, the notifications can still be pushed to iOS devices. Dose it make any sense? |
@shaoyunli if you build your app as development then you need to set gcmSandbox:true. If you build your app for production then you need to set gcmSandbox:false. |
I am getting successful registration Token here is a trick for upload APNS certificate .p12 you will get Registration token for APNS and GCM registration id both |
For me I found the issue was the |
This thread has been automatically locked. |
Just like @trsdln said in #548
iOS: 9.1
cordova-ios: 3.9.2
plugin: 1.5.3
It's works fine on android, any ideal with that?
The text was updated successfully, but these errors were encountered: