GCM defaultSenderID

前端 未结 6 1114
名媛妹妹
名媛妹妹 2020-12-11 00:02

Could somebody please help me understand what the gcm_defaultSenderId is in the following code (found in onHandleIntent in RegistrationIntentService.java):

I         


        
6条回答
  •  时光说笑
    2020-12-11 00:31

    The gcm_defaultSenderId is a string is included by the google-services gradle plugin. Be sure you have the:

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

    in your build.gradle file.

    This plugin should be available in the latest version of the build tools.

    Like Vesko said this is your Sender ID which in this case is the Project Number in your dev console project. The google-services plugin extracts this from your downloaded project configuration file.

提交回复
热议问题