You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently adding Notification logic to the app' using your plugin: GCM-Cordova.
I'm running a test project with your plugin to study it, so I installed it on eclipse, and i'm running it on an android device.
I manage to register the device for GCM messages + receive messages successfully.
When The device receives a message from Google Cloud, it calls the onMessage event handler (line 55, in this file: https://github.com/marknutter/GCM-Cordova/blob/master/src/com/cordova2/gcm/GCMIntentService.java) .
The event handler reaches line 77 to run this command: GCMPlugin.sendJavascript( json ); This commands supposed to call whatever legal Javascript i inject into it on the webView.
However at that particular scenario, the onMessage scenario, the static class' GCMPlugin members are not initialized at all, so the GCMPlugin.sendJavascript( json ) fails since all members of GCMPlugin are null.
As a result the message can't be delivered to the webView.
Summing it up: there is a need to handle an incoming message in a way that when the user taps a Notification - that tap not only turns on the application (or moves it back to the front if was paused), but also enables an ability to transfer some values from the Notification data to the UI using a javascript call.
The text was updated successfully, but these errors were encountered:
I'm currently adding Notification logic to the app' using your plugin: GCM-Cordova.
I'm running a test project with your plugin to study it, so I installed it on eclipse, and i'm running it on an android device.
I manage to register the device for GCM messages + receive messages successfully.
When The device receives a message from Google Cloud, it calls the onMessage event handler (line 55, in this file: https://github.com/marknutter/GCM-Cordova/blob/master/src/com/cordova2/gcm/GCMIntentService.java) .
The event handler reaches line 77 to run this command: GCMPlugin.sendJavascript( json ); This commands supposed to call whatever legal Javascript i inject into it on the webView.
However at that particular scenario, the onMessage scenario, the static class' GCMPlugin members are not initialized at all, so the GCMPlugin.sendJavascript( json ) fails since all members of GCMPlugin are null.
As a result the message can't be delivered to the webView.
Summing it up: there is a need to handle an incoming message in a way that when the user taps a Notification - that tap not only turns on the application (or moves it back to the front if was paused), but also enables an ability to transfer some values from the Notification data to the UI using a javascript call.
The text was updated successfully, but these errors were encountered: