What is authorizedEntity? Can't find gcm_defaultSenderId in own app

后端 未结 1 824
有刺的猬
有刺的猬 2021-02-11 18:57

I am trying to get my app running with Google Cloud Messaging. I am following the Google Cloud Messaging Quickstart App which can be found here on github.

In their quick

相关标签:
1条回答
  • 2021-02-11 19:58

    The R.string.gcm_defaultSenderId value is generated by the Gradle google-services plugin which uses a google-services.json file with defined constants.

    The plugin is applied in Gradle:

    apply plugin: 'com.google.gms.google-services'
    

    For more info check Implementing GCM Client on Android and see how to get the google-services.json file and set-up Gradle & app in developer console.

    0 讨论(0)
提交回复
热议问题