Reputation: 465
I am using own solution for Android, iOS and Windows Phone push notifications based on rs/pushd service and everything works well.
I've tried switch from own solution to OneSignal platform with my database with device tokens. There is no problem to send a push notification from OneSignal interface to my iPhone without any change in iOS app.
When I try to send push notification to my Android devices - push notification will send with OneSignal's state "Delivered (100%)" but notification is not shown on any of my devices. Same configurations and device token work on the pushd service. Configuration seems ok, because OneSignal recognize invalidated device tokens.
Upvotes: 1
Views: 1432
Reputation: 3948
On Android the code in the app handles the parsing and displaying of the notification, where on iOS the OS itself does this without waking the app.
It is recommend to use the OneSignal SDK especially for Android as it uses it's own GCM/FCM payload format to support all the features it offers.
The OneSignal GCM/FCM payload format isn't part of the documentation however it can be found as part of the project's unit tests below.
Upvotes: 2