1
私は、プッシュ通知を受け取るためにFirebaseを使用しています。私の問題は、これらの通知を無効にできるユーザーのためのオプションを用意したいということです。プログラムでFirebaseMessagingServiceを無効にする
<application android:label="MyApp" android:theme="@android:style/Theme.NoTitleBar" android:icon="@drawable/ico_myapp_application">
<receiver android:name="com.google.firebase.iid.FirebaseInstanceIdInternalReceiver" android:exported="false" />
<receiver android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver" android:exported="true" 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="${applicationId}" />
</intent-filter>
</receiver>
<!-- END Manual Firebase Additions -->
</application>
レジスタからアプリを防止するための方法/ FirebaseMessagingService
の作成はありますか?
を解除。あなたがID番号 –
に直接送信している場合を除き、私は考えていない最も簡単な解決策です。ありがとう! – user1519979
@HtmlTosin答えとして追加する必要があります。 :) –