以下のコードを使用して、複数の送信者IDのRegisterIdを生成しました。同じアプリ内の複数のGCM送信者
public class RegistrationIntentService extends IntentService {
@Override
public void onHandleIntent(Intent intent) {
InstanceID instanceID = InstanceID.getInstance(this);
String senderIDs = "SENDER_ID_1,SENDER_ID_2";
String token = instanceID.getToken(senderIDs, GoogleCloudMessaging.INSTANCE_ID_SCOPE, null);
}
}
私は
https://github.com/layerhq/documentation/blob/master/android/guides/push-integration.md
https://developer.layer.com/docs/android/guides
、からこのコードを呼ばしかし、私は "INVALID SENDER" 例外が発生しました。
この問題を解決するのを手伝ってください。