Android:Which one to use for package name? Manifest's packagename or Gradle applicationId?

后端 未结 6 1325
陌清茗
陌清茗 2020-12-17 15:11

I am using Android Studio version 2.1.2, and I am trying to implement Google Cloud Messaging to my app.

To be able to do that I hav

6条回答
  •  清歌不尽
    2020-12-17 15:42

    Google uses your package name as a unique name to identify your app. Since you mentioned that it is on Google Play, you should use the one in Gradle file to make it possible.

    And to answer the second part of your question, it is just a convention to define the app + ".permission.C2D_MESSAGE as your permission name, so you can use the one mentioned in Gradle file.

    Hope this helps :)

提交回复
热议问题