I am unable to send push notification to Subscribed Users from API but notifications can be sent from dashboard.
Error I am getting:
{"id":"","errors":["All included players are not subscribed"]}
Code I used:
{
“app_id”: “<appAPI>”,
“included_segments”: [“Total Subscriptions”],
“data”: {“foo”: “bar”},
“contents”: {“en”: “Sampple Push Message”}
}
Solution
change “Subscribed Users” to “Total Subscription”
Because previously the default initialization was “Subscribed Users” but now it is “Total Subscription” . Or maybe in your case it’s a different name , you can see the image below.