Skip to content Skip to sidebar Skip to footer

Delphi 10.1 Android How To Get Firebase Device Token

I have tried: APushService := TPushServiceManager.Instance.GetServiceByName(TPushService.TServiceNames.GCM); APushService.AppProps[TPushService.TAppPropNames.GCMAppID] := ''mobiles

Solution 1:

it's because:

APushService.AppProps[TPushService.TAppPropNames.GCMAppID] := '"mobilesdk_app_id"

is wrong and this property does not relate to the mobilesdk_app_id. It's related to the SENDER ID. This value can be found under settings -> cloud messaging -> sender Id. Once you put this value, you will receive the token.

Post a Comment for "Delphi 10.1 Android How To Get Firebase Device Token"