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

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

python - Pygame screen.blit not working -

c# - Web API response xml language -