Damian Perera
Damian Perera

Reputation: 3

Push Notification sent from Bluemix Dashboard not delivered to Cordova and Android Sample Apps

I signed up for a Bluemix account in the US-South region and created a CF mobile app to use the Push Notification Service. Added the GCM credentials to the push configuration, cloned both the Cordova and Android HelloPush sample apps from the ibm-bluemix-mobile-services repository and setup the App ID and App Routes in the index.js file (for Cordova) and the MainActivity class (for Android).

Followed the instructions in Android helloPush Sample Application for Bluemix Mobile Services and HelloPush Cordova application for IBM MobileFirst Services on IBM Bluemix for both the Android and Cordova apps respectively.

Although both the apps successfully register at the imfpush server and the token is received with the device id, the push messages sent via the Push Dashboard are not received by the apps.

Tried changing the GCM credentials, but no luck in resolving the issue.

I confirmed that the devices were registered in the Push Service by querying

https://imfpush.ng.bluemix.net/imfpush/v1/apps/{applicationId}/devices/

which returned the registered Device IDs.

Specifically, I noticed that registerNotificationsCallback() in the Cordova app does not get fired at any time.

Upvotes: 0

Views: 187

Answers (1)

James Young IBM
James Young IBM

Reputation: 616

We have recently pushed a number of updates to both our Android Push SDK and our Cordova Push SDK that hopefully have helped resolve this issue. We have also published an update to the Android Hello Push sample that I would recommend retrying at this point.

Additionally please ensure the following

  • That you are not using other push notification-related plugins in your Cordova project (phonegap for example) as these will cause conflicting behavior
  • Your test device has access to the internet and can access Bluemix domains
  • Your GCM credentials are push enabled and properly configured

Upvotes: 0

Related Questions