问题
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