且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Delphi 10.1 Android如何获取Firebase设备令牌

更新时间:2023-01-04 21:57:27

原因是:

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

错误,该属性与 mobilesdk_app_id 不相关.它与 SENDER ID 有关.可以在设置->云消息传递->发件人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.