我看过一个非常相似的问题,但他的解决方案没有帮助。我在logcat的警告部分看到了未知的许可。
unknown permission com.google.android.c2dm.permission.C2D_MESSAGE in package com.upmc
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.upmc"
android:versionCode="1"
android:versionName="1.0" >
<uses-permission android:name="android.permission.INTERNET" />
<permission android:name="com.upmc.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="com.google.android.c2dm.permission.C2D_MESSAGE" />
<!-- registers the receiving class for a c2dm broadcast intent to be .C2DMBroadcastReceiver.-->
<receiver android:name=".C2DMReceiver" android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<!--Action String being listened for, then calls parent registered receiver -->
<action android:name="com.google.android.c2dm.intent.RECEIVE"/>
<!-- still don't understand this -->
<catagory android:name="com.upmc" />
<!-- must unregister intent filter when app is not running -->
</intent-filter>
<intent-filter>
<!-- change here...action string pre-set by google?-->
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<!-- specify under what circumstances the action should be serviced -->
<catagory android:name="com.upmc" />
</intent-filter>
</receiver>
难以阅读我知道对不起!
我也没有得到任何来自谷歌的回复。我已注册此应用程序并已登录到Google帐户。有什么想法吗?
答案 0 :(得分:2)
根据this article,在您的应用程序中使用C2DM必须注册以下权限
并且还可以参考这个问题:C2DM: How to use C2D_MESSAGE permission?