question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Background recording is not working well

See original GitHub issue

Your Environment

Context

I wanted to be able to record a route while the application is in the background, but I get bad results 😕

Expected Behavior

Geo-location should be measured in the required intervals with the relevant distance filter

Actual Behavior

Geo location is measure sporadically and is inaccurate

Possible Fix

I would love to help out, but I have no clue

Steps to Reproduce

I’ve copied most of the code from the example, see here: https://github.com/IsraelHikingMap/Site/blob/master/IsraelHiking.Web/sources/application/services/geo-location.service.ts The project above can be complied using npm run build -- -c android and then packed to apk (cordova run android) to debug locally. I made sure the battery setting for the app is “no limitation”.

Context

I’m trying to convert the site I currently maintain: https://israelhiking.osm.org.il/ To be able to record a route when the application is in the background and I can’t achieve it using only the browser (as far as I know).

Debug logs

Probably better if you reproduce it locally, in case this is problematic I’ll be glad to try and extract logs from my device.

Here is how the recording looks, can be found here: https://israelhiking.osm.org.il/share/g5dzPscL9t image

It might be that I wrote the code wrong, but from the readme it looks fine…

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
HarelMcommented, Aug 24, 2018

I have changed locationProvider from BackgroundGeolocation.DISTANCE_FILTER_PROVIDER to BackgroundGeolocation.RAW_PROVIDER and it seems to solve this. Never-the-less I think the above is a workaround and not the right fix, IMO

0reactions
HarelMcommented, Jun 15, 2019

Yes, I haven’t changed the configuration since I posted this comment. I think raw provider uses interval and fastest interval add far as I could observe but it works be better to check with the maintainer of this plugin.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Windows 10 Game Bar Error “Can't Record Right ...
Change the recording shortcut · Press Windows Key + S and enter Xbox. Choose the app. · When the app starts click the...
Read more >
Adjust background recording settings on Windows
To adjust the length of background recordings, do this: Select Start , and open Settings . Under Gaming , select Captures. Make sure...
Read more >
How to fix “Can't Record Right Now, Try Again Later?”
How to fix “Can't Record Right Now, Try Again Later?” · Use Another Shortcut for Recording · Erase the Windows Store Cache ·...
Read more >
Fix: Can't Record Right Now Try Again Later - Appuals.com
Solution 2: Reset the Windows Store Cache. If the Store's cache is experiencing some issues, make sure you reset it with this simple...
Read more >
Solutions to Fix Sound Problems When Recording Screen in ...
If you are still screen recording video with no sound, run the dedicated audio recording trouble-shooter for Microsoft.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found