[英]Android c2dm unknown permissions
我看到一個非常相似的問題被發布但他的解決方案沒有幫助。 我在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帳戶。 有任何想法嗎?
根據本文 ,在您的應用程序中使用C2DM必須注冊以下權限
並且還請參考這個問題: C2DM:如何使用C2D_MESSAGE權限?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.