Search code examples
javapush-notificationibm-cloudibm-mobile-services

Removing Push.ALL in Bluemix Push Notification


I am going to write an Android push notification program and I want to use the tag-based subscription.

After I unsubscribe the default Push.ALL tag and subscribe another self-defined tag, I find that I cannot send the push notification from Bluemix (I just do it manually. I haven't set up a REST API). The error message is:

Internal server error. No devices found.

I am sure that I have registered the device as I can find my subscription records in Tags page of Bluemix. Before unsubscribing from the Push.ALL tag, I am able to send as well as receive the message.

How can I fix it?

Thanks!


Solution

  • I would recommend using the Push Notifications REST API Swagger doc to make sure you do have devices registered against your service. I would use the /devices api to accomplish this:

    enter image description here

    If there are no devices registered to your Push Notification service you will be shown the error: "Internal server error. No devices found". I would also not recommend unsubscribing the devices from the Push.ALL tag as this is a default tag in the Push service.