GCMPushPlugin icon indicating copy to clipboard operation
GCMPushPlugin copied to clipboard

Registration Id not show

Open edvenkat opened this issue 10 years ago • 5 comments

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...

edvenkat avatar Mar 28 '16 14:03 edvenkat

I have the same problem

mategvo avatar Apr 13 '16 11:04 mategvo

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

kevinseidler avatar May 13 '16 19:05 kevinseidler

@kevinseidler I tried on 8.4 but still not working

Resham143 avatar Jun 18 '16 11:06 Resham143

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;

kevinseidler avatar Jun 20 '16 11:06 kevinseidler

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" });

mohanoorani avatar Apr 18 '18 09:04 mohanoorani