1
votes

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!

1
Hello and welcome to StackOverflow. Please take some time to read the help page, especially the sections named "What topics can I ask about here?" and "What types of questions should I avoid asking?". And more importantly, please read the Stack Overflow question checklist. You might also want to learn about Minimal, Complete, and Verifiable Examples.yennsarah

1 Answers

0
votes

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.