Which is the package name on the build gradle?

匆匆过客 提交于 2019-12-12 04:08:55

问题


I'm trying to set the push notifications using firebase. During the setup it asks for the package name which is supposed to be on build.gradle and should look like this

com.yourapp.android

But I can't find anything like that... You guys know where to find it?

Thanks!


回答1:


Look for applicationId in your build.gradle. That value is your app's unique package name.

Alternately, it may be that ionic adds code to use the "package" attribute value from AndroidManifest.xml.




回答2:


You can find the application package name and version code from config.xml in ionic project. In config.xml what ever specified in the widget id will be the package name.

<widget id="com.yourapp.hybrid" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">


来源:https://stackoverflow.com/questions/45466006/which-is-the-package-name-on-the-build-gradle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!