Which is the package name on the build gradle?

2019-07-26 22:47发布

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!

2条回答
Evening l夕情丶
2楼-- · 2019-07-26 23:13

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.

查看更多
老娘就宠你
3楼-- · 2019-07-26 23:15

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">
查看更多
登录 后发表回答