Search code examples
androidpush-notificationandroid-c2dm

Always getting Unauthorize error(401) in c2dm android


Actually,i have used ramachandru6@gmail.com as a "sender id" in my app and that same id and same password used for getting authentication tocken.but still am getting 401 error. i have spent more than two days.please any one guide me.what i have to do?


Solution

  • IN GCM there is nothing like using id and password for authentication. When you set up your app in GCM it will give one server side token. Use that as a key