インタフェース RegistrationIdHandler
public interface RegistrationIdHandler
Firebase Cloud Messaging利用時、
レスポンスにてregistrationIdのリフレッシュ、削除が通知された場合に処理を行う場合のハンドラです。
RegistrationIdHandlerは、設定ファイルのFCMPushNotificationServiceに設定します。
-
メソッドの概要
修飾子とタイプ メソッド 説明 voidrefreshRegistrationId(java.lang.String currentId, java.lang.String newId)currentIdで示される登録トークンの正規の登録トークンをnewIdで通知します。voidremoveRegistrationId(java.lang.String registrationId)registrationIdで指定される登録トークンは無効であることを通知します。
-
メソッドの詳細
-
refreshRegistrationId
void refreshRegistrationId(java.lang.String currentId, java.lang.String newId)currentIdで示される登録トークンの正規の登録トークンをnewIdで通知します。- パラメータ:
currentId- 現在の登録トークンnewId- 正規の新規の登録トークン
-
removeRegistrationId
void removeRegistrationId(java.lang.String registrationId)registrationIdで指定される登録トークンは無効であることを通知します。 ユーザーの端末から、アプリケーションがアンインストールされた場合などに、通知されます。- パラメータ:
registrationId-
-