React-native-onesignal: User is unsubscribed after notification is sent

Created on 23 Aug 2019  路  5Comments  路  Source: OneSignal/react-native-onesignal

Description:

Whenever a notification is sent to a specific player id, the user with that player id is unsubscribed. The status before sending the notification was subscribed in OneSignal dashboard. No notification is received either on the device. All corresponding notifications sent from REST API returns response as errors

{ id: '',
recipients: 0,
errors:
{ invalid_player_ids: [ 'example_player_id' ] } }

Environment

OneSignal SDK - "react-native-onesignal": "^3.3.2"
React Native Version - "react-native": "^0.60.4",

Anything else:

Kindly suggest some approach in debugging this issue

All 5 comments

same issue here :(

same issue here
@aneet48 did you find any solution ?

same issue here
@aneet48 did you find any solution ?

nope, did you ? or any alternative

Howdy @meetyourdev @aneet48 ,
Please include the HTTP request you're making, if possible in cURL form.

same issue here
@aneet48 did you find any solution ?

nope, did you ? or any alternative

I was using react-native-push-notification library in my project for scheduling notification ... which was using GCM and not FCM. Due to which my project had both GCM and FCM. Removing that library and clearing conflict in GCM - FCM solved this issue for me.

Was this page helpful?
0 / 5 - 0 ratings