appcenter-sdk-cordova/demoapp
Michael Smith 90bb58e04b change bundle id 2019-11-06 13:52:59 -08:00
..
www Update cordova demoapp with v0.5.1 2019-10-29 16:25:54 +08:00
README.md updated demoapp with 0.1.6 dep 2018-06-27 12:01:00 +03:00
build.json Set back to auto provision 2019-11-06 13:45:32 -08:00
config.xml change bundle id 2019-11-06 13:52:59 -08:00
google-services.json Update secrets and google-services.json 2019-07-17 13:21:02 +03:00
package-lock.json ios & android fixes 2019-08-08 16:44:06 +04:00
package.json Update cordova demoapp with v0.5.1 2019-10-29 16:25:54 +08:00

README.md

Sample application

This is a sample application that demonstrates some of capabilities of App Center for Cordova

To run application and test those capabilities please follow the instructions below:

  1. Configure Application Secrets for both iOS and Android

    In config.xml find APP_SECRET preference for both iOS and Android platforms and set it's value to application secret as displayed in App Center portal

  2. Change other plugins preferences if required

    Change APPCENTER_ANALYTICS_ENABLE_IN_JS and APPCENTER_CRASHES_ALWAYS_SEND values if you want. By default application is configured to not send analytics automatically to demonstrate/test scenario with programmatic switching App Center Analytics functionality on and off; Crashes plugin is also configured to process crashes in JS rather than send them automatically to demonstrate crashes processing and reports events handling.

  3. Configure Google FCM

    Download google-services.json from Firebase portal and put it near config.xml to enable receiving push notifications on Android and then find and uncomment the following section in config.xml:

    <!-- <resource-file src="google-services.json" target="google-services.json" /> -->
    

    For iOS no additional configuration is required.

  4. Install dependencies

    Run npm install in console to install Cordova CLI locally

  5. Run app on Android/iOS

    In console type cordova run android or cordova run ios to launch application on either Android of iOS device or emulator. The command will run application on device if connected or start an emulator and launch app on emulator.

    Hint: If you want to pass some additional arguments to underlying cordova command, add them after double dash --, for example to run application on iPhone 7 simulator use cordova run ios --target=iPhone-7