Android push c2dm Not working with a 200 ok reponse -


i've been trying send push message java ee web app, android phone.

i've followed , read lot of tutorial (like 1 http://www.vogella.com/articles/androidcloudtodevicemessaging/article.html)

i registration_id on android phone. sent post request witch sent me "200 ok" response !

but can't nothing on broadcastreceiver...

the "200 ok" response mean message been send ? can ?

thanks guys ;)

there few things check here.

  1. did declare receiver messages in manifest? seperate receiver when application receives messages. ensure package name matches yours. should similar too:

     <receiver     android:name=".c2dmmessagereceiver"     android:permission="com.google.android.c2dm.permission.send" >     <intent-filter>         <action android:name="com.google.android.c2dm.intent.receive" >         </action>          <category android:name="jakebuller.liveapp" />     </intent-filter> </receiver> 
  2. you need make sure created class matching name name of receiver declared in manifest seen above. class registration receiver.

i had same issue few days ago , turned out receiver not being declared in manifest sure triple check that. hope helps!


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -