java - GCM Topic messaging error -


i want let application register topic messaging, each time try call topic registration returning error below

java.lang.illegalargumentexception: invalid topic name:

using method bellow

gcmpubsub.getinstance(context).subscribe(regtoken, "/topics/testtopic", null); 

i using tutorial on link https://developers.google.com/cloud-messaging/topic-messaging. appreciate on error.

please try sample app. "/topics/testtopic" should fine. mentioned in documentation, topic name matching regex should fine: /topics/[a-za-z0-9-_.~%]+


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -