Limitations
    • 1 Minute to read
    • Dark
      Light

    Limitations

    • Dark
      Light

    Article summary

    Android​

    • Devices running Android API 29 or later need background location permission, so the user must choose "Allow all the time" for the geofence API to work.

    • On single-user devices, there is a limit of 100 geofences per app. For multi-user devices, the limit is 100 geofences per app per device user.

    • On Android 8.0 (API level 26) and higher, if an app is running in the background while monitoring a geofence, then the device responds to geofencing events every couple of minutes.

    • Users must turn on both WiFi, mobile network, and Google location accuracy for the geofence API to work as intended.

    • When your app is running in the background on Android 8+, your app still receives updates in batches a few times every hour.

    More information in terms of device battery optimization can be found here.

    iOS​

    • Up to 20 locations in a small area (e.g. 500 meters radius) can be used.

    • iOS does not support fake GPS servers, and so, Mapp uses .gpx files to simulate fake GPS locations. Details: ​Create a .gpx file and add it to a project​

    • Push notifications are not sent if the user lacks an available network.

    • Apps can expect a notification when the device moves 500 meters or more from its previous notification. Notifications are not sent more frequently than once every five minutes.

    • If the device can retrieve data from the network, the Location Manager is much more likely to deliver notifications on time. For more details, see here.

    • Popup specifications for allow location depend on the device version. The location must always be allowed. Additional notes are in the following table.

    Version

    Pop-Up

    Comment

    iPhone X

    Software version 13.5.1

    1. ​Allow While Using App ​

    2. ​Allow once ​

    3. ​Don't allow​

    The user should find the application in ​Settings​ > ​Location​, and choose ​Always​ as a possibility.

    iPhone 6

    Software version 12.4.6

    1. ​Only While Using the App​

    2. ​Always Allow ​

    3. ​Don't allow​

    It is sufficient to click ​Always Allow​ on the popup (if ​it​ is not picked, the push notifications will not be delivered until the user goes to device settings and activates ​Always​ in application location settings).

    Create a .gpx file and add it to a project​

    1. Download Google Earth Pro

    2. Use the tool ruler to create a detailed route. For details and steps for creating a .gpx file, see https://www.starpath.com/gpx/.

    3. Download the .gpx file, and add it to the XCode project that you use for testing Geo.


    Was this article helpful?