私はアプリを作成しています。このアプリのユーザーにプッシュ通知を送信したいので、PushBots
サービスを使用します。 、彼らはマニフェストでこれらの権限を置くために言って彼らのガイドでC2Dの許可エラー
:
<!-- GCM connects to Google Services. -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<!-- GCM requires a Google account. -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<permission android:name="com.example.sampleapp.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="com.example.sampleapp.permission.C2D_MESSAGE" />
<!-- This app has permission to register and receive dataf message. -->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
しかし、新しいpermission request
システムでは、私はすべての単一の許可を要求する必要があります。だから今、私は私のアプリでは、これらのアクセス許可を求めている
:
-location許可(I地図アクティビティを使用します)。
-accounts権限(PushBotsは必須と言います)。
私は私のアプリを実行しようとしたが、これは私が取得エラーです:
java.lang.IllegalStateException: Application does not define permission com.giladneiger.haerev.permission.C2D_MESSAGE
は、どのように私はこのための許可を要求することができますか?そのためのオプションはありません。私のアプリは非常に多くのパーミッションを要求して、ユーザが忍耐を失うことになります。
このエラーとは何が関係していますか?
であなたのパッケージ名com.giladneiger.haerevの代わりcom.example.sampleappを使用する必要があります - com.giladneiger.haerevを?あなたのアプリケーションパッケージ名は何ですか? –