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
{{ message }}
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.
Previously when I use Phonegap Build to create android GCM app, everything works fine. When app is in background, notification shows up in shade and emit sound/vibration. Then when I click the notification in shade, the app goes to foreground and "notification" event is fired. All good.
Then I download cordova (v 5.4.1) and android SDK ("android-22") to build the same app locally. The app is successfully built. When app is in background, notification shows up in shade but does NOT emit sound/vibration. When I click the notification in shade, the app goes to foreground but "notification" event is NOT fired.
I am speculating that my cordova environment may be different from what Phonegap Build uses. I installed cordova and android SDK yesterday so each is the latest version.
When I look at the build log, some difference exists on some libraries' version.
My phone's android version: 5.0.1
Previously when I use Phonegap Build to create android GCM app, everything works fine. When app is in background, notification shows up in shade and emit sound/vibration. Then when I click the notification in shade, the app goes to foreground and "notification" event is fired. All good.
Then I download cordova (v 5.4.1) and android SDK ("android-22") to build the same app locally. The app is successfully built. When app is in background, notification shows up in shade but does NOT emit sound/vibration. When I click the notification in shade, the app goes to foreground but "notification" event is NOT fired.
The app's index.html is:
The config.xml is:
The GCM payload is:
The only difference is "xmlns:" header in the config.xml. For Phonegap Build, it is "gap=http://phonegap.com/ns/1.0" while for cordova it is "cdv=http://cordova.apache.org/ns/1.0". The difference is not substantial, is it?
I am speculating that my cordova environment may be different from what Phonegap Build uses. I installed cordova and android SDK yesterday so each is the latest version.
When I look at the build log, some difference exists on some libraries' version.
Phonegap Build:
My local cordova:
Where else should I start to check? Thank you very much.
The text was updated successfully, but these errors were encountered: