Unable to register to c2dm from device

295 views
Skip to first unread message

ov

unread,
Feb 10, 2011, 4:53:44 AM2/10/11
to android-c2dm
Registration from device (android phone running 2.2) is not working.
The handler does not receive a response. LogCat shows the following
warning -

WARN/ActivityManager(2219): Unable to start service Intent
{ act=com.google.android.c2dm.intent.REGISTER
pkg=com.google.android.gsf (has extras) }: not found

Any clues on what could be wrong?

Appreciate your speedy response!

Thanks.

abdul waheed

unread,
Feb 10, 2011, 4:59:16 AM2/10/11
to androi...@googlegroups.com
Hope you,ve properly done modification in ur xml file too..
--
Thanks and Regards
Abdul Waheed



ov

unread,
Feb 10, 2011, 5:40:27 AM2/10/11
to android-c2dm
These are the relevant changes to AndroidManifest.xml (com.xx.yy has
been used in place of the app package)

<service android:name=".C2DMReceiver" />

<permission android:name="com.xx.yy.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.xx.yy.C2D_MESSAGE" />
<uses-permission
android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.INTERNET" />

<receiver android:name=".C2DMReceiver"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="com.xx.yy" />
</intent-filter>
<intent-filter>
<action android:name="com.google.android.c2dm.intent.REGISTRATION" /
>
<category android:name="com.xx.yy" />
</intent-filter>
</receiver>

Any changes needed?

Thanks.


On Feb 10, 1:59 am, abdul waheed <abdulwahee...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages