anshuman-mathur / AppStudio-Testing

0 stars 0 forks source link

Test Case: Improved background location performance for Android #3

Open anshuman-mathur opened 6 years ago

anshuman-mathur commented 6 years ago

This test is to verify the functionality of background location in an Android app.

steps to follow:

  1. Open AppStudio and sign in using your ArcGIS Online credentials.
  2. Create a new starter app. Click on Edit to open the app in Qt Creator and use the code in the text file below to create an app that logs the location in background. Background_Location.txt
  3. Open the settings and enable the Background location capability.
  4. Upload the app to ArcGIS Online.
  5. Download the app in Player and test the app on your mobile device.
  6. When you press the Start Logging button in the app, the app starts logging your location.
  7. Move your app to background and then open it again. Confirm that your location was been logged even when the app was in the background.
  8. In AppStudio desktop, use the Make tool to build your app using Cloud Make for your mobile device. Select Android as the target platform.
  9. Browse to appstudio-ota.arcgis.com from your mobile device to download and test the app.
paul-gpsit commented 6 years ago

Is that Background_Location.txt example part of a larger app? It references some components such as MainPage, MapPage, PositionLog etc. Are these part of an existing template or sample and available?

anshuman-mathur commented 6 years ago

@paul-gpsit yes you are right. What I can do is give you a zip of the entire test app (except the iteminfo.json) which you can use to test.

Background Location.zip

paul-gpsit commented 6 years ago

Created app and tested in AppPlayer on Android Samsung Tab2 tablet. Worked fine, I enabled console logging and was able to see position updates continuing even when the app was in the background.

image

paul-gpsit commented 6 years ago

Built app for Android and tested on Android Samsung Tab2 tablet. I had added console logging to the app so could see position updates coming through when the app was in the background. So all looks fine to me.