Can't get Push Notifications on Android. REST API

Hi,

I am using REST API in Flash Professional CC2014.
I get Push messages on iOS devices successfully, but I don’t get any Push messages on android devices.
Device is registered successfully and I also receive the registration Id.
I have added all the necessary permission in the manifest file. Please see below:

<manifest>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.2.debug.permission.C2D_MESSAGE"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-permission android:name="android.permission.c2dm.permission.RECEIVE"/>
</manifest>

Please suggest possible solutions.

Thanks,
Tushar

Hello, Tushar!

Do you see the android device in the list of registered devices on console?
regards,
Alex

Yes, device is there in the console.

In face, every time I publish my app to debug, it adds a new device entry into the console.
Perhaps because new unique device id is generated every time I publish the app.
However, this doesn’t happen with the iOS app.
Any number of times I publish the app on iOS, it registers as only one device in the console.
Hope this helps.

Thanks
Tushar

Are you sending headers “android-ticker-text”, “android-content-text” and “android-content-title” when publishing the push notification?
The thing is that if you’re using BackendlessBroadcastReceiver class for handling push notifications and these headers are not sent - push notification wouldn’t be shown.

Yes.
Below is the data object I use to send out message,

var params:Object =
{
message: messageText,
publisherId:“MyApp”,
pushPolicy:“ONLY”,
headers:
{
“ios-alert” : messageText,
“ios-badge” : “1”,
“android-ticker-text” : messageText,
“android-content-title” : “Message from Admin!”,
“android-content-text” : messageText
}
}
var url:String = BackendlessREST.api + ‘messaging/default’

Looks like it should work fine. What about publishing messages through the console? Are you able to receive them on android device? Also, does this issue reproduce on real device?