我創建的Android推送通知AIR本機擴展,但是當我跑我得到異常,如應用程序:權限拒絕:接收意向
權限拒絕:接收意向{行動= com.google.android .c2dm.intent.REGISTRATION cat = [air.com.test.mobile](有額外)} to air.com.test.mobile.debug需要air.com.test.mobile.permission.C2D_MESSAGE,因爲發件人com.google .android.gsf(UID 10019)
清單:
<android>
<colorDepth>16bit</colorDepth>
<manifestAdditions><![CDATA[
<manifest android:installLocation="auto">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<permission android:name="air.com.test.mobile.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="air.com.test.mobile.permission.C2D_MESSAGE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<application android:enabled="true" android:hardwareAccelerated="false">
<receiver android:name="com.google.android.gcm.GCMBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE"/>
<action android:name="com.google.android.c2dm.intent.REGISTRATION"/>
<category android:name="air.com.test.mobile"/>
</intent-filter>
</receiver>
<service android:name="com.adobe.sampleasextension.GCMIntentService" />
<activity android:excludeFromRecents="false">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
]]></manifestAdditions>
</android>
我已經添加了這些權限 – Vamshi
我已經添加了我的清單..請查看它。 – Vamshi
@Vamshi查看我的更新回答 – Eran