Reputation: 1189
I am using onesignal from my webservice to send push notification to an android app. everything was working properly but suddenly yesterday this service stopped and is returning:
"{"id":"","recipients":0,"errors":["All included players are not subscribed"]}" false
What is this error? this is my posted json that I didn't change since yesterday:
postString = "{""app_id"":""my_api"", ""tags"" : [{""key"": ""my_key"",
""relation"": ""="", ""value"": """ & my_key& """}] ,""data"" : {""contactName""
: """ & contactName & """ , ""phoneNumber"" : """ & phoneNumber & """,""latitude""
: """ & latitude & """, ""longitude"" : """ & longitude & """, ""messageType"" :
""" & messageType & """,""MessageDate"" : """ & MessageDate & """ }, ""contents""
: {""en"" : """ & pushMessage & """ } }"
NB: 1- I tried to add ""included_segments"" : [""All""] but I still have the same problem
2- I checked some documentations and I found that case is sensitive for parameters ... , but in my case I didn't change anything and sending notifications was working fine.
Any suggestions?
Upvotes: 3
Views: 5131
Reputation: 11
Two years late to the party, and this is probably fixed, but player-id's have to be sent to One signal in an array.
Upvotes: 1