Moving to FCM from GCM.
In GCM, we can call getToken() method for multiple sender ids as below:
String senderIds = "112233445566,889922338899";
String token = instanceID.getToken(senderIds,
GoogleCloudMessaging.INSTANCE_ID_SCOPE, null);
Q1 - After moving into FCM, will it remain same or I need to make any changes in order to get the token for multiple sender ids?
From this reference, I know that I can call getToken("senderIds1", "FCM") for each sender Id, but I want minimum code changes while moving into FCM.
Q2 Will below work for FCM (same like GCM) or I have to call getToken("senderIds1", "FCM"); getToken("senderIds2", "FCM")?
getToken("senderIds1, senderIds2", "FCM")