Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android c2dm registration Id fails

I am working on google's C2DM and have a program on the android emulator trying to get registration ID. But I get following errors:

DEBUG/GoogleLoginService(171): onBind: Intent { act=android.accounts.AccountAuthenticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService }

WARN/GoogleLoginService(171): Device has no accounts: sending Intent { act=com.google.android.gsf.LOGIN_ACCOUNTS_MISSING }

ERROR/GTalkService(171): asyncFetch: no username

DEBUG/C2DMRegistrar(171): [C2DMRegistrar.20] AuthTokenCallback: account missing

like image 726
Srinivas Avatar asked Dec 05 '22 01:12

Srinivas


2 Answers

Your device needs to have at least one Google account set up under Settings/Accounts for C2DM to work.

like image 148
Josef Pfleger Avatar answered Dec 21 '22 11:12

Josef Pfleger


This is Because your device is not in Sync with the Google Go to Settings and add account enter Your Google account username and Password. Hope this Works..

like image 40
gaurav Avatar answered Dec 21 '22 10:12

gaurav