Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to test background mode in DEMO APP #223

Closed
tito-py opened this issue Apr 4, 2020 · 1 comment
Closed

How to test background mode in DEMO APP #223

tito-py opened this issue Apr 4, 2020 · 1 comment

Comments

@tito-py
Copy link

tito-py commented Apr 4, 2020

I want to make a test in which every X Minutes/Hours the demo updates the location independently if the app is started in mobile or not. How should I configure the DEMO APP?

Your Environment

  • Plugin version: 1.7.1
  • Platform: Android
  • OS version: 10
  • Device manufacturer / model: Huawei / P20 (ELE-L04)
  • Flutter info (flutter doctor):
  • Plugin config:
PASTE_YOUR_CODE_HERE

Expected Behavior

In the DEMO App, when closing the app, it should continue reportng in Background.

Actual Behavior

After closing the APP, it does not keep refreshing in background.

Steps to Reproduce

  1. Open Demo App
  2. Start Advanced
  3. Enable Background Refresh and allow the permision
  4. Close de app

Context

Debug logs

Logs
PASTE_YOUR_LOGS_HERE
@christocracy
Copy link
Member

Read the wiki “Philosophy of Operation”. The responsibility of this plugin is to track device when it is detected to be moving and conserve energy by turning of location-services while stationary.

When you move, it tracks.

Also see http://dontkillmyapp.com, especially with Huawei devices.

Also see api docs event onHeartbeat and method getCurrentPosition. Also see included dependency background_fetch

@tito-py tito-py closed this as completed Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants