FAQ
Hi all,

In my app, in the AndroidManifest.xml, the package name is com.xxx.alpha,
and the categories are as below:

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

Please notice the value of category's name is com.xxx, not com.xxx.alpha.

And the permissions are as below:

<permission android:name="com.xxx.permission.C2D_MESSAGE"
android:protectionLevel="signature"/>
<uses-permission android:name="com.xxx.permission.C2D_MESSAGE"/>

The permission is also com.xxx, not com.xxx.alpha.

But, when I run my app on JB, I can receive push notification! When I run
the app in Froyo, I cannot even get registration id. So is this an Android
bug, or a loose of limitation? Thanks.

--
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-gcm+unsubscribe@googlegroups.com.
To post to this group, send email to android-gcm@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/5b1ef285-a547-41b3-88a2-84e417d21c86%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupandroid-gcm @
categoriesandroid
postedSep 25, '13 at 10:55a
activeSep 25, '13 at 10:55a
posts1
users1
websitedeveloper.android.com...

1 user in discussion

Xinyu Wang: 1 post

People

Translate

site design / logo © 2018 Grokbase