To run the app you need to create a credentials.ts
file which contains the credentials to access the backend in the
folder src/environments
with the following content:
export const credentials = {
authUsername: 'USERNAME',
authPassword: 'PASSWORD'
};
Run npm run start
for a dev server. Navigate to https://localhost:4200/
. The app will automatically reload if you
change any of the source files.
Run ng test
to execute the unit tests.
Before releasing the apps to the stores you need to update the following files and increment to the correct version:
- config.xml
- package.json
- imprint.page.ts
After that you need to build the project and copy files:
ionic build --prod
npx cap copy
Open Android Studio with the following command
npx cap open android
Change version code & version name and generate a signed apk or bundle: Build -> Generate signed APK / Bundle. Select keystore, set password and alias and click "next". After that the apk or bundle should be created. Locate the file, upload it on https://play.google.com/apps/publish with a new release.
In order to use push notificiations you need an google-services.json
in the directory android/app/
. The file can be
found in Google Firebase.
Open the project in XCode with
npx cap open ios
change version. Select "Generic iOS Device" in dropdown at the top. Then use Product -> Archive to upload the file. After that you can continue the release process on https://itunesconnect.apple.com/.
You need to enable the push notifications in XCode. Add them as Capability, then you are ready to go.