Apphive Docs
Apphive Documentación ( English)
Apphive Documentación ( English)
  • 👋Welcome to Apphive
  • First steps
    • 🔍Apphive
      • Start with a template
      • Start from the beginning
    • 📐Apphive editor
      • Work with containers
      • Responsive design
      • Lateral Menu
    • 📱Apphive Previewer
      • IOS App Preview
      • Android App Preview
    • 🤖Apphive AI
  • Elements
    • 🎮Controls
      • Container
      • Swiper
      • Field
      • Text
      • Button
      • Switch
      • Picker
      • Radio
      • Slider
      • Image
      • Camenra View
      • Map
      • Web View
      • Calendar
      • Icon
      • Video View
      • Graphic View
    • ⚙️Functions
      • 🕹️Controls
        • Generate swiper content
        • Iterate children
        • Modify Control
        • Toogle side menu
        • Add collection to UI
        • Toogle bottom menu sheet
        • Toogle page loading
        • Trigger Event
        • Set palette colors
        • Bubble
        • Show image viewer
      • 👨‍👩‍👧Users
        • Change my password
        • Forget Password
        • Get All Users
        • Get App Users
        • Get User Other App
        • Get Data From Other User
        • Is Logged In?
        • Login
        • Login With Facebook
        • Login With Google
        • Login with apple
        • Logout
        • Set other user custom data
        • Set user custom data
        • Sign Up
        • Update AuthInfo
        • Update data from other user
        • Is Current User Email Verified?
        • Send Email Verification
      • 📀Cloud database
        • Delete database data
        • Get Database Data
        • Save data in DB
        • Upload file
      • 💿Local database
        • Delete all local Data
        • Delete local storage data
        • Get local storage data
        • Set app value
        • Set data DB direct
        • Save local storage data
        • Set page Value
      • ⛓️Logic
        • Arithmetic Operation
        • Array from object
        • Based on current OS
        • Chronometer
        • Concat
        • Conditional
        • debounce
        • forEach
        • Global Formater
        • Value is invalid
        • Object keys
        • Generate Random Numer
        • Range Iteration
        • Regex Test
        • Search in Object
        • Set interval
        • Set timeout
        • Stop set interval
        • Switch
        • Generate uuid v1
      • 🔔Notifications
        • Confirmation alert
        • Input dialog
        • Send Alert
        • Toast notification
      • 📲Phone APIs
        • dismissKeyboard
        • Open phone settings
        • Get connection type
        • GetDeviceInfo
        • Print remote PDF
        • Get Screen Dimentions
        • Is audio playing
        • Make a call
        • Open calendar
        • Ope geo map
        • Open Url
        • Open WhatsApp
        • Pause playing audio
        • Barcode Read
        • read QR code
        • Read SMS (Android)
        • Set Audio Time
        • Share
        • Show file browser
        • Start playing audio
        • Start Recording audio
        • Stop playing audio
        • Stop Recording Audio
        • Take a photo
        • Take a video
        • Vibration phone
        • Resize Image
        • UxCam Record
        • Avoid Suspension
        • Copy clipboard
        • Download file
        • Launch App Review
        • Launch App Update
        • Biometric auth
      • 🗺️Geolocalization
        • Get All fire geolocation
        • Get fire geolocation
        • GeoFire listen item
        • Query fire geolocation
        • Query all fire geolocation
        • Remove fire geolocation
        • Set fire geolocation
        • geoFireSetMultiple
        • Geocoding
        • Get distance
        • Get geolocation
        • Start geolocation tracking
        • Stop geolocation tracking
        • Start geolocation tracking http
        • Coordinate Inside Poligon
      • 💬Push Notifications
        • Request Permission
        • Push Notifications Cancel All
        • Send push
        • Open Remote
        • permissionRequestRemote
      • 🪙AdMob
        • Interstitial Ads
      • 📈Google Analytics
        • Log Event
      • 🚗Navigation
        • Return to last screen
        • Push screen
        • replaceTopPage
        • Replace screen
      • 💵Paymentes
        • inAppPurchaseGetHistory
        • inAppPurchase
        • payUsingAppleWallet
    • 🗄️Database
    • 📲Variables menu
      • Context Data
      • ListContext
      • PreviusOutputs
      • Color value
      • EventOutput
      • Auth
      • Complex
      • Controls
      • General
    • ⌨️Keyboard shortcuts
    • 🔩App processes
      • Params (WebApps)
    • 📠API Functions
  • Compilations and upload to stores
    • ⚙️Settings
      • Change splash screen
      • Get google api key
      • 🔥Firebase
        • Create account in firebase
        • Switch to plan blaze
        • Get realtime database url
        • Get realtime storage url
        • Get services accounts.
        • Enable functions
        • Enable authentications
      • 📘Facebook Developers
        • Facebook for developers
    • 👾Android
      • Compilation
        • Request Apk and Abb in Apphive
        • Download Apk and Aab files
      • Publication
        • Get a developer account in Google Play Store
        • Publish your app in Play Store
        • Background location
      • Settinggs after publishing
        • Log In with Gmail after publishing
        • Log In with Facebook after publishing
        • Copy the database and develop users to Firebase
      • Update app in play store
        • Update version on Play Store
    • 🍎IOS
      • Previous settings
        • Get a Unlimited plan
        • Request iOS permissions
      • Developer account
        • Get a developer account
      • Compilate version on testflight
        • Create a contanier in App Store and generate Testflight version
      • IOS settings in firebase
        • Enable push notifications in Firebase
        • Enable login with Apple record in Firebase
      • Publish in app store
        • Select app to review
        • Take screenshots to publish in App Store
        • Fill the App Store form
      • Updates
        • Update your app in App Store
    • 💻WebApp
      • 💻Domains
      • 💻SubDomine
      • 💻Logins
        • 📡Google
        • ⌨️Facebook
      • 💻Vapid public key
    • ❌Compilation errors
      • Error code: 01
      • Error code: 03
      • Error code: 04
      • Error code: 07
      • Error code: 09
      • Error code: 10
      • Error code: 11
      • Error code: 12
      • Error code: 14
      • Error code: 17
      • Error code: 18
      • Error code: 20
      • Error code: 22
      • Error code: 1039
  • Pricing
    • 💰Subscriptions
      • Get a Premium or Unlimited subscription
  • Resources
    • 📕Others
    • 📘Glossary
    • ❓FAQs
    • 🆘Support
Powered by GitBook
On this page

Was this helpful?

  1. Compilations and upload to stores
  2. Android
  3. Publication

Background location

PreviousPublish your app in Play StoreNextSettinggs after publishing

Last updated 2 years ago

Was this helpful?

Google announced a background permissions policy a few months ago, for which any application that requests geolocation in the background must meet certain requirements in the Google Play Store before being approved.

This is mainly needed for delivery or taxi applications that have used this service to be able to track the driver in the background while making deliveries.

When you enter your Google Play console you will see the following message that part of the information in your app is incomplete:

You must go to Content of your app and later in the section called Sensitive permissions of the app you must click on start

This will take you to the Permissions Declaration Form where you must click on start:

You must indicate that your application does use background tracking and complete the questions indicating the purpose of the app and why it uses location in the background:

Here is an example of the responses:

What is the main purpose of your app? The purpose of the application is to track delivery men to deliver food and groceries to users who request it.

When a delivery man is connected, he can receive orders near his location, which he must deliver to the user who requested it.

Why does your app need to access location in the background? The application requires the use of geolocation in the background to allow the tracking of the delivery man by the user who requested the order and to be able to assign orders near his location.

Later you must upload the link to a video in which you demonstrate the operation of your app with the tracking function in the background, some recommendations:

You can upload the video to dropbox, google drive, or youtube but make sure it is public so they can see it Avoid videos or long explanations, it should last around 30 seconds Shows from the time the user logs in until the trace starts It is very important that a message is clearly displayed before starting the scan (this message can be displayed only the first time you scan and omitted subsequent times), you can display it in an alert or in a text on the login page. Sample tracking message for background geolocation

Another example:

The video may look like this example:

Finally click on save and the request should appear as sent:

It is Very important to additionally add access to a previously approved driver or delivery person account in the application so that it allows reviewers to carry out the tests.

Add login credentials to a demo account

To do this, create an account in your production application and approve it so that it can work, ideally the same account that you used in the video, and you must upload the username and password of this account in the Access to apps section:

In this section you must add the username and password, either edit it or add a new one as shown in the image:

Enter the name of the credentials for example "Delivery credentials", the email and password to access and some brief instructions on how to activate background tracking:

Finally click add and then save.

It is very important that you verify that the user is working correctly before adding the credentials.

Once sent you must wait a few days for it to be approved, meanwhile you will see this status in your panel:

Once approved, this message will disappear, if for some reason it is rejected you may receive an email similar to this:

In this case, we recommend you review this guide in detail and submit it for review again. It is not necessary to publish a new version of the app, unless you have added the alert message when connecting or modified a part of the interface.

Common mistakes:

Do not add the message when connecting. It is very important to add the message when the user clicks on start tracking and this must be a clear and colorful message. Upload very long videos. The video must last around 30 seconds, if it is longer they may not read it. Do not add valid username and password. If the username and password you added is from a driver, if approved could prevent the reviewer from validating your app. Very long or incomplete explanations. Get straight to the point and describe as concisely as possible the functionality of your app and why it requires background tracking. Not having a privacy policy. When publishing the app it is very important to include a link to a privacy policy that indicates that location data will be collected, they do not always review it but it can be the subject of rejection, you can edit it from your console where indicated in the image:

👾