gonzaloaune / GCMPushPlugin

Push notifications for Cordova (GCM & Native support)
MIT License
37 stars 20 forks source link

Registration Id not show #28

Open edvenkat opened 8 years ago

edvenkat commented 8 years ago

Hai friends,

I got alert for "Would like to send notifaction" but not getting the Registration id .....please advice

If i missing any thing. FYI - register method only called.... initWithWebView,didRegisterForRemoteNotifications,didReceiveRemoteNotification are not called...

mategvo commented 8 years ago

I have the same problem

kevinseidler commented 8 years ago

Me 2. Because initWithWebView is not called, didRegisterForRemoteNotifications is not called because the corresponding observer is never registered. Happens on iOS 9.3.

Resham143 commented 8 years ago

@kevinseidler I tried on 8.4 but still not working

kevinseidler commented 8 years ago

The observers are not registered correctly. I had to do the following in the Xcode project:

in Plugins/GCMPushPlugin.m: replace: - (CDVPlugin )initWithWebView:(UIWebView )theWebView { with: - (void)pluginInitialize { and remove: return self;

mohanoorani commented 6 years ago

I Still have problem the register successcallback do not fire window.GcmPushPlugin.register(successHandler, errorHandler, { "badge": "true", "sound": "true", "alert": "true", "usesGCM": true, "sandbox": true, "jsCallback": "onNotification" });