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

Allow Geofence to trigger when app is killed #22

Closed
wants to merge 2 commits into from
Closed

Allow Geofence to trigger when app is killed #22

wants to merge 2 commits into from

Conversation

cladjules
Copy link

Currently, the geofence does not trigger the Javascript code while the app is killed, as there are no registers set yet.

In iOS, the app will automatically wake-up when the geofence is triggered and the listener will be registered after a few seconds.

In Android, I am instantiating the activity and launching the app, it's quite an ugly solution and I could use headless-js for that.

I haven't merged the latest release, but that gives an idea of how that could be achieved.

@eddieowens
Copy link
Owner

Thanks @cladjules for the PR but I'm currently working on a solution using HeadlessTaskService for android (see issue #19). And if iOS is not triggering in the background, please open an issue.

Thanks again!

@eddieowens eddieowens closed this May 19, 2019
@ValentinBlokhin
Copy link

ValentinBlokhin commented Jun 24, 2019

It would be great to have an ios part. Is it possible to have ios part merged? I have created a related issue already: #33

@paulrostorp
Copy link

For iOS, According to this, I believe we need allowsBackgroundLocationUpdates to be set to true: https://developer.apple.com/documentation/corelocation/handling_location_updates_in_the_background?language=objc
Screenshot 2023-02-11 at 15 34 10

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

Successfully merging this pull request may close these issues.

4 participants