J'apprends comment envoyer et recevoir des notifications push via GCM
, je suivais this tutorialcomment obtenir un jeton de InstanceID dans GCM
et il y a une classe appelée GCMRegistrationIntentService
affichée ci-dessous. en ce qui concerne la ligne suivante:
InstanceID instanceID = InstanceID.getInstance(getApplicationContext());
//Getting the token from the instance id
token = instanceID.getToken(getString(R.string.gcm_defaultSenderId), GoogleCloudMessaging.INSTANCE_ID_SCOPE, null);
ce qui est R.string.gcm_defaultSenderId)
? J'ai essayé de le trouver dans strings.xml
, mais une telle entrée n'était pas disponible
pourrait s'il vous plaît clarifier et expliquer?
double possible de [GCM defaultSenderID] (https://stackoverflow.com/questions/30694817/gcm-defaultsenderid) – Ibrahim
d'une autre manière, vous pouvez utiliser fcm à la place – Ibrahim