Check that you've updated your configuration settings file to reflect the correct values:
- Delete or remove the local.json file in the config directory. Otherwise this will overwrite the values in production.json
API.ENDPOINT
: update to point this at the remote API serverCREDENTIALS.ANDROID.SENDER_ID
: update this to the id of the Google Developers Console project project you created to run this appSHARING.URL
: update this to the URL to use when the user uses a share action from within the appSHARING.MESSAGES
: update these to reflect the custom sharing messages your organization wants to use
Update the Ionic project file and config.xml files to reflect your organization, e.g. update the field, set the domains the app is allowed to communicate with etc.
Please see the Ionic - Publishing your app page for full details
- Run
cordova plugin rm org.apache.cordova.console
- Edit the AndroidManifest.xml file under platforms/android
- change
android:name
to the correct name for your app - change
android:debuggable="true"
toandroid:debuggable="false"
or add it if not present
- change
export NODE_ENV=production
gulp build
cordova build --release android
Please refer to the "Android Publishing" section of the Ionic publishing guide for details of how to sign the generated APK and prepare it for the app store.