This object is in archive! 

Locus Map terminated on Huawei smartphones

Kipcior shared this problem 7 years ago
Solved

Hi,

my old SGS4 Active is coming to an end so it's about time to think about new smartphone. I analyzed a lot of them and almost decided to buy new Huawei P10 which is right about what I searched for: dual SIM, 64 RAM, fullHD screen, good look. But then I found some information on net that Huawei and Honor smartphones which comes with EMUI interface, are killing applications which're running in background when screen is off. Most examples were referring to Endomondo and other sports tracking apps but Locus is basically similar when it comes to tracking and recording tracks. My question is: did anyone tested how Huawei phones are dealing with Locus pro? I've been using it on my old SGS4 for many years, recording tracks even for a whole day in mountains and never had problems like killing app without notifying me about it which seems to be the problem described on net with Huawei products. Maybe one or two times the phone restarted itself but then I knew something went wrong.


I found one topic where menion also mentioned about some problems with Locus on Huawei when Huawei decide to kill it because locus was overusing CPU or smth like that but it was like 8 months ago. Has it been already solved? Are this kind of problems still existing ?? To be honest if I knew that it's all fine I'd go for it but if I buy Huawei and after one day of walking I find out that only th first hour was recorded because Huawei killed app I'd very very angry :)

Best Answer
photo

Good evening all.

I'm glad that Christmas 2018 may be a little more "happier" and we may close this issue thanks to the update published for Huawei devices. Thanks all for patience and help with this issue.

Perfect and have a nice holiday.

Replies (133)

photo
1

Good day Kipcior,

I would also like to read some responses from other users that use Locus Map on latest Huawei devices.


I may confirm that few months ago, there were serious issues with Locus Map & Huawei devices. I even purchased P8 Lite just to solve this problem ... anyway unsuccessfully. Huawei optimization was so agressive, that is always killed Locus Map, no matter what I did ( as a developer ).


Anyway during last months I did not read about some new issues. So

  • a) by some accident, Locus is now more robust on Huawei devices ( I don't think so ... )
  • b) Huawei updated their software so it is now not so aggressive ( most probably )
  • c) all Locus Map users already give up ...


So I do not know. I personally do not trust these devices too much, but as I wrote .. it's some time since I really read about some serious issues with Huawei devices. Some personal user experiences are welcome here ... ( consider this as my humble opinion from developer point of view ).

photo
1

Thanks' for the answer Menion. That was quick :) Although it's still a mystery whether it will work properly or not - but thank's for honesty :) So, I'm also curious whether other users have any experience with this duo. Taking into account my phone requirements there's not much choice on the market in Poland. By the way, anyone have any experience with Asus Zenfone 3 ? I know it's not that powerful, but seems to have the features I want and also much cheaper then

p10 so maybe it's better choice (assuming it does not have that issue as huawei - at least haven't heard)

photo
1

I see that no responses given so it;s a question mark. Although finally I went with OnePlus 5 phone - it;s on the way to me so we'll see how it handles with Locus and the processes in background. If anyone is intereste I can share observations after some time of usage

photo
1

Thanks Kipcior for an information. Hope your new device will serve well to you! In case of problem, feel free to write us, we will gladly help ( if possible ).

Menion

photo
1

Hello,

is there any user that can confirm that Locus is running on Huawei devices (P8 / P9 / P10 / Lite) and is not being killed? I plan to buy P9, but locus is the main interest - so it would be nice to know in advance if this issue is still valid.

Thank you in advance!

photo
1

Can't say for P-series, but on my Honor 8 Locus is running nicely.


Yes, there are these powersafe settings killing apps when screen gets locked, but you can quite easily disable the killing for each app in power-settings.

The versions are Android 7.0 and Emui 5.0.1

I lately had problems with another app not running its background sync anymore, until I checked the powersafe settings. The developer there is also interested to see if there's a possibility from devel side, to prevent killing...

Else, I have no problem using locus. Did track recordings a whole day long, auto backup is working BLE (heart rate), all is well (as long as killing in background is disabled :-)

Same counts for my wife's Honor 6x.

photo
1

Hi Uatschitchun,

thank you for your message. I am now testing Huawei P10 :) and I am quite surprised from the not accurate GPS. You said, it's running nicely for you - what about the accuracy? Do you get smooth logged trace (my is jumping around the path)? I have to play with it little bit, my concern is that the accuracy is lost when I turn off the display.

Can you please advice if some specific settings is necessary to get the best possible accuracy of the log and distance measurement?

Thank you

photo
1

Can't say for anything other than Honor 8 & 6X. Especially the 6X is recording very nice and accurate! The 8 is a little worse in that regard, but I had it 'grounded' once, so could be it has something to do with that 🤔

Regarding GPS there's nothing you can do. No settings.

Turning off the display has an influence on GPS accuracy? Bet not! :-)

photo
1

Hello,

just want you to know that I have the same problem on my Huawei P20 Pro. When recording a track the OS keeps killing Locus after about 10 minutes. I never managed to record any complete track. I tried whitelisting Locus on all features I consider related to power saving, which is "Apps > Settings > Special access > Ignore battery optimisation", "Battery > App launch > Manage manually" and "Lock" in the Recent Apps screen. However, no luck.

I really think of returning the phone, just because of this issue. No working Locus makes the phone effectively worthless.

photo
1

Good day Patrick,

sorry to hear about these troubles. Huawei devices are known for this aggressive "sleeping" policy.

Anyway may you please try to enable in latest Locus Map version: settings > GPS & location > Google services assisted location . If this will make any difference ... thank you.

photo
1

Hey Menion,


thanks for the quick response. Unfortunately this option does not help.

At first I thought it worked, after some screen off time Locus was gone from the Notification Area, but after relaunching it immediately resumed recording. But nothing was recorded after Locus has been killed, it just jumped to the new location. I then tried several times with and without the option but it is hard to say if the behavior is any different.

I first had the impression, that with the option enabled Locus is better in resume recording after it has been killed, while without the option enabled it seemed it is more often the case that after Locus is restarted it does not even notice it was recording a track and thus showed no "Track paused" screen and the partial recorded track was lost. But the longer I tried the more it seems to have nothing to do with this option.

Sometimes it records 15 minutes, sometimes it is killed already 30s after I switched off the screen.

So maybe when it was killed right away it just didn't have any points recorded and thus had nothing to resume when relaunched.


Thanks anyway for the help, I really appreciate your work and I know it is not your fault. I have similar problems with other apps, such as the Pebble app, which, however, at least works for some hours before it looses the connection.

photo
1

Hello,

damn ... what Android version you have, is it already Android 8? In app is one optimization that is disabled for Huawei devices because it caused some troubles in history. Anyway, it may start work on new Android 8, so if you are interested, I may prepare the special Locus Map Free version for you for a test. Are you interested?

photo
1

Yes it runs 8.1.0. I'm happy to help testing your special build.

photo
2

Hi Menion,


I have a Huawei Mate 10 Pro, and had the same issues as described by Patrick. Over the past couple of months I have tried all available Huawei tips and tricks to prevent killing background tasks, but without success. Yesterday I tried your tip and enabled "Google Services Assisted Location".

As of that moment I have not had a single problem with Locus. I left it running (and recording) in the background over the past 15 hours and can say it is now stable, thanks very much! Apart from the sometimes too agressive battery saving options I love my Huawei, so I am very glad it is solved.

photo
1

Is it possible that the "Google services assisted locations" does only work when certain Google settings are enabled? I have Google location history and sharing disabled. However, I have High Accuracy mode enabled.

photo
1

Good day Patrick,

if possible, give a try to this Locus Map Free - Beta version: https://nas.asamm.com/share.cgi?ssid=0EEtERj

Some Google history etc. should not affect this alternative location source I hope. @Duco , I'm glad to hear that at least somewhere we succeed :).

photo
1

BTW, I'm using Android 8.0 on my Huawei Mate 10 Pro...

photo
1

Hey Menion, tried your special beta but unfortunately absolutely no change. I tried all combinations of "Ignore battery optimisation", "App launch > manually" and "Google services assistant locations" no success, when waking the device about 10 minutes after switching off the display any trace of a running Locus is gone and with it all traces of recorded tracks. After a new start of Locus there is no "Unfinished track record pending" or anything.

In the last test I get at least the "Unfinished track record pending" notification, but nevertheless the recording is interrupted any few minutes. Here is a screenshot of the altitude chart of the track. Every hour or so I switched the device on, noticed Locus got killed again, restarted it and resumed the recording.

934d3bd849bbaa2c02cf2e8f5c3bd201

As the phone was just lying at the window the accuracy of the altitude measurement was not so good, but one can clearly see how often quick the recording was interrupted.

Thanks, nevertheless, Menion, for trying.

photo
1

Good day Patrick,

thanks for a tests and screenshots. Because your device P20 Pro is quite new with new Android & Huawei modifications, we do not have any experience with it for now. Anyway from your chart is clear that system did not completely kill an application, just put it into "sleep mode". Which is good. I'm sure, there have to be some settings in your device, that affect this behaviour. Maybe check Locus Map settings in your system settings >apps. There should be "Battery" option and under it are some more settings to allow or disallow optimize app etc. Please check it let me know if something will work.

There is too much devices to purchase every one of them to discover some crazy modifications that manufacturers do, so I really hope you will succeed. Thanks!

photo
1

Please don't forget, that I needed something 5 attempts to get this screenshot. Most of the time after re-launching Locus there isn't any track record pending. So I guess in this cases maybe Locus has just been killed and not gracefully been sent to sleep. I'm not sure why sometimes the track can be recovered and sometimes it is simply gone. Maybe it has something to do with the time before switching on the device again, or with the GPS reception. I don't know.

photo
1

Hello,

Just for your information. I'm using a Huawei Mate 10 Pro since 01.2018 with Android 8.0. Locus Pro was working fine till the last update of Huawei in 04.2018 (BLA-L29 8.0.0.129(C432)). I have also tried the suggested settings, but without any success. The app will be exited after about 15min when the screen is off. My wife uses a Huawei P10 Plus, also with Android 8.0, and Locus Map is running fine on this phone.

photo
1

Update:

I've disabled this function (German screenshot; -> manage automatically)

/n9LV1OScoBT1QAAAABJRU5ErkJggg==

After that, I've started a record in the office and it runs over 50 minutes:

/7xHAPnGAgMnAuLwMT57zkGzjFwKgb+Jxs7boHKFYtNAAAAAElFTkSuQmCC

photo
1

@Stefan, this is what I meant with "App launch > manually" above. I'm glad it works for you. Unfortunately it didn't change anything in my case. Just tried it again with and without the "Ignore battery optimisation" option enabled.

photo
1

@freischneider

Really interesting information on the linked sites!

photo
1

@Patrick

Yes, I've read your tips yesterday after posting my first comment.

I use these settings like you: "Apps > Settings > Special access > Ignore battery optimisation", "Battery > App launch > Manage manually"

Yesterday I had enabled this function in the Locus settings: "Google services assisted locations"

Today I've tracked my trip to work successfully without it.

And I use these GPS settings in Locus:

("deactivate if not displayed -> off" and "Track recording" -> on

/zzNeTY3VkgZrsuyrnAvMXHHnssP9Eo5h4SCAQCQ0MgCHlouMVdgUAgEAjUjkDssqgd0sgwEAgEAoGhIRCEPDTc4q5AIBAIBGpHIAi5dkgjw0AgEAgEhoZAEPLQcIu7AoFAIBCoHYEg5NohjQwDgUAgEBgaAkHIQ8Mt7goEAoFAoHYEgpBrhzQyDAQCgUBgaAgEIQ8Nt7grEAgEAoHaEQhCrh3SyDAQCAQCgaEhEIQ8NNzirkAgEAgEakfgfwGovleeHD728QAAAABJRU5ErkJggg==

photo
1

Hello guys,

may anyone who use Beta versions, test just published version 3.30.4.2?

Or I've made public link to our NAS here https://nas.asamm.com/share.cgi?ssid=0qf0UjQ.

I made more depth comparison of old 3.29.2 version and the latest and found one minor difference that may caused this change, so we will see. Thanks!

photo
1

Sry, same as always... After waking my phone from standby after half an hour or so Locus is gone, as is the recorded track.

photo
1

Hello Patrick,

that's bad. We have an unsolvable problem (for now) here ...

photo
1

Yeah, they fixed it! With the new Huawei Firmware CLT-L29 8.1.0.120(C432) the problem is solved. Although the changelog [1] contains nothing related, only Google Patches and camera improvements.


Just made a 30 minute test bike tour without waking my phone and when I arrived home and I couldn't believe my eyes, Locus was still running and the whole track has been recorded, unbelievable :)

For the reference I used Locus Map Pro 3.30.4 with "Google Services Assisted Location" disabled.

Thanks, nevertheless, Menion for your great support. Keep it up.

[1] https://www.huaweiblog.de/software/firmware/firmwareupdates-fuer-huawei-p20-und-p20-pro/ (German)

photo
1

That's good!


It was the same for Huawei P9 5 months ago - solved with new firmware version. It seems that Huawei repeat the same problem again and again.

photo
1

👍👍👍 We hope, the next update doesn't kill it again!

photo
1

Hi guys,

really? These are really good (and interesting) news. If anyone wants to test it and confirm, I may suggest trying the latest Beta version, where was done some more changes that should affect GPS stability.

photo
1

Hi, for the Honor 9 with the latest FW it doesn't work. I tried beta also, there is same issue, recording is stopped after cca 5 minut, if the phone is in Stand By.

Honor 9 with STF-L09 8.0.0.364(C432)

photo
1

Hello Washa, damn, this is bad.

May you please give it a one more quick try and change settings > GPS & location > Google Assisted location settings? You probably had it disabled, so enable it and try again. Thanks!

photo
1

Hi, yes ofcourse. I tried it just now with the option enabled, unfortunately, the same result.

I'm available for any tests.

photo
1

Hi there, i have the same problem since i updated my Honor 9 to version STF-L09 8.0.0.364(C432).

Version of locus is 3.30.4.

I will try beta and let you know.

photo
1

And again. My Mate 10 Pro got an update last weekend to version BLA-L29 8.0.0.142(C432) and freezes totally the app. After switching on the screen, the app is in the background and it seems to be. that the app starts new, because of the first "Initialisation window". Also the track recording is being forgotten. But: Also the original weather widget doesn't refresh anymore automatically. Meanwhile I begin to dislike Android 8...

photo
1

Good day guys,

sorry to hear about such problems. I'm seriously worried that I won't be able to find working solution.

Anyway, if anyone has a while, please give a try to this version 3.31.0.1: https://drive.google.com/file/d/1ArNUh_aPPbLq2tgCqW2YyZDSBpkgJV5s/view?usp=sharing

I made a small change especially for Huawei devices, so let's try it ... thanks.

If the app will be terminated by the system as before, create me please a log by the known method. Maybe there will be a visible reason why this happen.


Jiří M. aka Menion

photo
1

Hi, tried it 5x times, bad news. Not working. Locus itself stays in background while phone is in Stand By, just the recording makes it killed. I have the same problem with Strava, Endomondo is working well.

photo
1

Hi Menion,

About a month ago I reported you that I was finally able to run Locus Pro in the background on my Huawei Mate 10 Pro. I know that it is basically related to the agressive way in which Huawei does battery management. But since I use Locus a lot for recording trips and geotagging photos it was really a big deal to me.However, last week I updated to the latest version, BLA-L29 8.0.0.142(C432), and unfortunately the problems returned. So I installed your latest beta, but it does not solve the background problems. I also use Runtastic Pro, and what strikes me is that this app does work well in the background. So my optimistic conclusion is that there must be a way to get it solved. I do realize these kind of issues can be quite tedious to solve however. If you like I can create a log for your beta, maybe that gives you some clues. Anyway, thanks for being so persistent in trying to crack the problem!

Thanks, Duco

photo
1

Hello Duco & Washa,

thanks for a testing, appreciate it. Damn, in case it works for other apps, there has to be any solution.

Anyway, I'm little desperate for now, sorry. Will try to search on the internet if there isn't any new information. Thanks for a patience!

Jiří M. aka Menion

photo
1

Searching and searching and this is what I've found so far:

  • phone settings > apps > Settings button > Special access > Ignore optimizations > Locus Map Free/Pro > Allow
  • phone settings > battery > 'disable' Power saving mode, 'disable' Ultra power saving
  • phone settings > battery > Settings button > 'disable' close excessively power-intensive apps
  • phone settings > battery > Close apps after screen lock > 'disable' for Locus Map Free/Pro

Tips also on Strava support site: https://support.strava.com/hc/en-us/articles/216942547-How-to-fix-GPS-recording-issues-on-Huawei-phones


Hehe, the last comment is funny: "P10 - I now record using Locus Map and Strava at the same time. Locus Map seems to do a better job of keeping GPS running so this helps Strava to avoid crashing. This has not failed for rides up to 1 hour 40 minutes.


Not a perfect solution but I think starting two recordings is not a problem for me."

Any chance that you have enabled any optimization from a list above?

photo
1

@Menion I've sent two links of log files to you. The beta isn't working on my phone. I hope this all will help you. BR Stefan Sorek

Battery optimisation disabled

photo
1

Stefan, thanks for a logs. I'm trying to find some useful information inside. Only what I've found so far is something around:

06-10 20:34:33.159  1000  1818  2148 I APwPowerPolicy: screen off, navi app recent no sound and now stable, ignore gps: menion.android.locus duration: 1185980
06-10 20:34:33.161  1000  1818  2148 I ash     : menion.android.locus { doze duration=6037 UptimeDuration=6037 } transition to: hibernation reason:
06-10 20:34:33.161  1000  1818  2148 I ash     : hibernation takeover action: 2
06-10 20:34:33.161  1000  1818  2148 I ash     : doze no need clear action: 2
06-10 20:34:33.161  1000  1818  2148 I ash     : perform hibernation actions: menion.android.locus
06-10 20:34:33.165  1000  1818  2148 I ash     : Pending menion.android.locus alarm OK !
06-10 20:34:33.165  1000  1818  2148 I ash     : h takeover proxy gps pkg:menion.android.locus
which looks like that after "screen off", system put Locus into some "hibernation" mode and disabled GPS for this app. What about optimizations I wrote in previous post http://help.locusmap.eu/topic/locus-pro-on-huawei-smartphones#comment-58413 . Is all this set in your case?

photo
1

Hi Menion, thanks for your reply. I had done the most of your setting advices, some I think I haven't got on my phone. I attach some screenshots to this message. If you need any translation, please let me know. Stefan

photo
1

Hi Norbert,

the biggest problems caused by agressive system optimization are unfortunately with your device. As you can see in this topic, we've been fighting with it for a year: http://help.locusmap.eu/topic/locus-pro-on-huawei-smartphones. There is some advice in the topic, you can test them and let us know the result.

photo
1

I have used Huawei P9 before but I have no problems that the phone killed Locus app. There is an option to exclude Locus in the list of apps that will be killed upon screen lock. Check it in the optimization. I'm now using Huawei P20, still have no problem. Try to run locus as a service.


The problem with Huawei is that it has a poor GPS performance that's why I bought Garmin GLO as my GPS receiver which is being paired with Locus Pro.

However, if you are using the built-in GPS of your Huawei Device, it could be that the GPS is being inactive due to poor signal or battery optimization.

Try the following, it may work:1. Run Locus as a service.

2. Exclude Locus in the kill list.

3. Use GPS Keep On application (see playstore) to make sure that the GPS will not be automatically off.

4. Configure your track recording to alert you (sound and/or vibrate) when GPS signal is lost.

5. Put your device in a place with less distraction or with a sky view while recording.

photo
1

I must say the GPS on my Huawei Mate 10 Pro has excellent performance. I have no need for an external receiver. I use the internal GPS all the time for driving (Waze, Google Maps) and running (Runtastic). As I mentioned before in this thread, Runtastic always runs in the background with no issues whatsoever. The recorded tracks look very accurate. I also use a Photo Geotagging app (Geotag Photos Pro), which runs in the background with no issues.

So it is definitely possible to have a stable background app on Huawei devices, I hope the very talented Locus devs will find a solution eventually...

photo
1

I received an update to android 8.0 for my Huawei P10 about 3 weeks ago, before it had been running android 7.0.

With android 7 there had been no problem at all with internal GPS, i intensively used Locus Pro for tracking in background, but also used different other tracking apps (or did some testing with it) all mostly running in background (bergfex, Runtastic, Sportstracklive, Strava, Sportractive, ...) finally i deceided to use Locus Pro exclusively because it seemed to be most reliable and best configurable and works perfect with offline maps!

Now with android 8 i'm running in big troubles with Locus, it's no more useable for tracking in background.


I reinstalled Sportractive --> still works fine with android 8 , i use it now for tracking

i also reinstalled Sportstracklive, this app had not been updated since April 2015 --> still works fine with Huawei P10 + android 8


so you are definitely right:

  • there is no problem with poor GPS hardware on Huawei devices
  • there is no general problem even with android 8 on Huawei devices

photo
1

Hello guys,

topic with a summary of this problem: http://help.locusmap.eu/topic/problem-with-locus-map-on-huawei-android-8-devices

just to keep you informed: yesterday I had to purchase Huawei Honor 10 because of these problems. Till now, I was not yet able to find any hack, how to keep Locus Map alive :/. Always killed within a few minutes always on my device. I'll post here any news if I find something. For now, thanks all for the help and please be a little patience with me, thanks!

Jiří M. aka Menion

photo
1

Hi Menion,


I think you propably know it, that Locus is only killed, when recording is ON. I tried to find the process, if it has its own rulety for battery optimization, but i can't find anything...


Washa

photo
1

Hello Menion, that are good news! Thanks for your effort and keep us informed please.

Stefan

photo
1

Hello I'm very new to Locus Maps and I have the same problem on a Nokia 7 Plus with AndroidOne Oreo 8.1. Recording stops after 30-40 minutes. I disabled all battery management optimiations from the system for Locus Maps. I use no other battery saving apps but recording still stops after some time.


Maybe some tipps for development:

There are important changes for background services in Android 8.0 which affects ALL apps regardless of targetSdkVersion. See the following link:

https://developer.android.com/about/versions/oreo/android-8.0-changes

https://developer.android.com/about/versions/oreo/background

The Locus Maps service should be started with StartForegroundService() rather than StartService(). I don't know how Locus Maps service is implemented but this info may help.

Another subject is that Locus Maps has a targetSdkVersion of 25. This should be set to 26 in the near future.


I hope this will help and the problem can be fixed soon.

photo
1

Hello Markus,

thanks for a tips.

Locus is already ready for Android 8.0. All necessary tasks are running as foreground services (except navigation system), and it may also be possible to use settings > misc > Locus as a Service, that enable virtual foreground service.

Interesting for me is how you found out that Locus has defined target to 25?? I've just for sure checked target apk to new 26 API, but it make no difference here, unfortunately.

photo
1

Hello Menion,

there are some apps on PlayStore which show targetSdkVersion of installed apps. I used this one:

https://play.google.com/store/apps/details?id=com.kroegerama.appchecker


Be sure that really that service module that does the tracking is started as foreground service. In older Android versions it was enough to start one service as a foreground service to keep the complete app alive. With Android 8.0 the system now can stop/kill a single service if it is not started as a foreground service. This is new to Android 8.0. In older Android versions always the whole process was stopped.


Can you tell me what Settings->GPS & Sensors->Google services assisted location exactly does? Will it use the FusedLocationProvider Api when checked and the old Location Api when not?


Btw: Thanks for this great application. Even very nice as a sports tracker.

photo
1

Hello,

ah interesting (app on Google Play), thanks.

About foreground service ... you may simply check it. Every foreground service has a permanently visible notification in system panel (slide from the top of the screen). It cannot be removed during active service. So for example live tracking, track recording, Locus as a service and some other are all separate foreground services,

And "Google services assisted location", yes, it enables using Fused location provider available over Google Play services instead of good old "Location manager".

Menion

photo
1

Yes, I see. If I start a recording, a new notification appears. So all should be correct.

I will try later with Fused location provider. The one thing I haven't tested for all. Maybe it will help on the Nokia 7 Plus.

If this will not help I will try to switch off the Oreo background manager (though Locus Map is on the whitelist so it should not be managed).

It is really strange. Google Fit for example seems to work without any problems recording a track.

Thanks for you work.

photo
1

Hi,

i'm a developer from an other app and i found this because we are facing the same issues with Huawei devices.

This is really annoying.

We are also having troubles with Nokia phones. Nokia is also killing some apps with there power saving app.

https://community.phones.nokia.com/support/discussions/topics/7000023855

Maybe it helps you in a way.

photo
1

Good day Thomas,

I believe that all devs that needs background-running-gps-service face this stupid problem, so welcome on board.

Seems that solution on Nokia devices is removing certain app from device. We both agree that this is something we cannot expect, users will do. Anyway thanks for the link!

As you read here, on some devices, this issue is already solved by system update. I use for work Honor 10 and unfortunately here, no update so far. Seems we have to be patient.

Btw. good luck with your motorcycle app, looks good!

photo
1

Thank you for your quick response.

Yes, i agree that this is something we cannot expect from our users. For the moment we fixed the issue on Nokia phones with a workaround.

I'm trying to do something similar for Huawei devices. I found out that may the Huawei background task freezer (ash) is causing this problem. But i haven't foun any solution for now.

I'll let you know as soon as I know more.

Thank you very much!

photo
1

I tried to make locus pakage on white list with adb but but same problem After do this. Locus crashed. With recording and without recording. After some minutes locus ist of. I am angry about oreo and huawei

I think with oreo 8.0.0364 it was little bit better but on 368 not possible to use any tracker like locus komoot etc.

I am sad about it. I had a lot of fun with locus 800 km through germany. Now i havent the possibility to use locus. And i have taken a lot of time to find a way to fix :( my device is huawei mate 9

photo
1

Understand. I worked on it till 3 at night and since morning again whole day. No matter what I try, Locus is always terminated. Endomondo is the only app that seems to be able to keep alive, on the second side, it lost GPS after few minutes so it also does not record correctly.

I started writing on Huawei support and will keep writing every few hours. Hope there will be an answer. Uff ... :/

photo
1

Problem is huawei Support said to me that the problem is from app like locus or komoot. They said to me the apps are not from us so it is not our problem. I was so angry. I told them that they will lost a lot of User and in Future i will buy another device. After that i didnt get a answer of them

photo
1

I have tried some "map-apps". The most are stopped by the system, but this app "Hiking map Poland" indeed records when I switch off the screen. Tested it about 15 minutes at home. Tomorrow I will check it on my way to work. So there must be a solution for Locus Map, too, I think.

photo
1

Indeed, it seems to work. I'm checking its code, but do not see anything useful. The only difference is its compilation to target API 27. I tried it also based on Markus suggestion and it may have a small difference. Unfortunately, Locus is not yet ready for API 27, but I'll give it the priority on next days.

Btw. no response from Huawei support so far ...

photo
1

Good morning, it was running for about 20 minutes, but as you can see on the screenshot, from Dortmund to Essen (where I've switched on the phone) there is only a line. And I've gone to work by car, not by plane :-) So, it also doesn't work...

photo
1

Information. Trackrecording on THL4000 A 4.4.2 !

By Hiking Map Poland and at the return by Locus Map. Screen on/off sequence at +/- same position. See attachments.

photo
1

2 weeks ago, on a P10 Lite, it was working fine (Locus set to run as a service). Now it closes after a few minutes. There was no update done to the phone's software. But Locus did update. Maybe a glitch somewhere?

photo
1

Oh there was a locus beta Update for few minutes have you try another possibility menion?

I tried it. Locus works 15 minutes in background than it was close from oreo. And i lost 20 % batterie for this 15 minutes :D

photo
1

I checked again today, but these two apps have been running well in the background for hours on my Mate 10 Pro:

- Runtastic

- Geotag Photos Pro

So there definitely appears to be a way to get it right. Hope you find it Menion!

photo
1

Thanks Duco,

just tested Runtastic and well ... it's put to sleep after maybe 10 minutes since start. So seems to be a same problem.

I've already tested maybe 10 well known apps and they all do not work correctly. Even Endomondo etc. I've improved Locus (my test version) so now it seems not to be killed by system, but track recording is still paused because whole device is put into some super-sleep mode and all apps stops to react. It more and more looks to me like a serious problem on Huawei devices, not just a Locus & others problem. I'm still trying ...

photo
1

Is there an official "complaint" site for huawei? Maybe we should all write them about the issue.

Other than that, yesterday I was trying to test. Strava & Locus (service mode) were killed after a few minutes. I then removed "Service Mode" in Locus and installed "Cafffeine" - it is supposed to keep the device awake. I was able to record for some 20minutes (I manually stopped the recording, as I got inside). Maybe this helps...


Is this an issue with the GPS recording apps? As music players never get killed...

photo
1

I have the same issue on my oneplus 6 with Oxygen-OS 5.1.7 (Android 8.1)

photo
1

Locus works perfectly on my OnePlus 6 with:

Android 8.1.0

Oxygen 5.1.8

Have you tried upgrading the Oxygen version?

Also make sure power saving is off; I already made this easy mistake ;-)

photo
1

Since the last update it is working on my oneplus 6. But before I had the same issue than on huawei devices.

photo
1

I think a erlier oreo Version like b364 it was better.

I had stops in locus or komoot but not After 10 minutes like now.

I used komoot an locus in middle of May and it worked better. I had only one break in 180 km. I went by bike. Same device and Android Oreo but an older Version from Oreo. Now i have 8.0.0368. Now it isnt possible to use komoot or locus.

photo
1

+1

I have the same issue with my Mate 9. Locus Maps is amazing and I don't see the fault in Locus but in Google/Huawei. Nevertheless there seems to be a way to solve this from Locus site and this is to go to API 27 (well, at least it's worth a try). Is there anything the community could help Locus with? Like testing or something?

cheers,

M

photo
1

Hi guys,

I've tested mentioned Runtastic and it does not work for me as well!

Update to target SDK 26+ as suggested by Markus seems to help a little bit, but still, the device is put to sleep. I'll create new Beta version during next days with this update. It won't perfectly handle some changes, but it least there will be something to play with.

I already wrote few times on Huawei support email, but still no response. Well, no single app as I know works perfectly on my new very nice (soon come to trash) Huawei ... well done.

I also made a topic here http://help.locusmap.eu/topic/problem-with-locus-map-on-huawei-android-8-devices , so if you are only interested in some bigger changes and not a long discussion here, please add a vote there and you will then get only email notifications on my own posts.

Jiří M. aka Menion

photo
1

Hi all,

i have found this one:

https://www.xda-developers.com/android-oreo-background-location-whitelist/

and tested it today. Locus doesn't break in background. I used Bluetooth GPS. This is broken in 2 times, but when i open Locus and wait 5 seconds Bluetooth will come back and all is allright. And all the time Locus works still in background.

photo
1

Interesting. But will it work without a bluetooth GPS device? I'll test it tomorrow.

photo
1

I tested it with device gps for few days. But locus finished After some minutes. I havent got i bluetooth gps. I would like to have only one Device on Trip

photo
1

No it doesnt work. I looked for locus packe Name and do the adb settings hopefuly but the result was very sad

photo
1

Tomorrow i will test it with Devices GPS.

photo
1

I did it and it didnt work on my Device.

After reboot it is possible u have to flash new the white list settings. It is not a solution. Not for them who havent a open bootloader. Not for normal User and it didnt work with internal gps on my Mate 9

photo
1

Hi guys,

first Locus Map version based on Target SDK 27 with bunch of optimizations that should keep app following latest Android 8 requirements:

https://drive.google.com/file/d/1pTiUDcHy5GFvvGycCpvkiTy6slySXmxM/view?usp=sharing

Expect, there may be some problems ... consider it as Alpha version.

My own tests on Huawei? Fail as usually. But usually, app lived a lot longer than before.

Optimizations

  • Battery > App launch > manual
  • Apps & Notifications > Apps > Settings > Special access > Ignore battery optimizations > allow

Both seem to have zero effect. When I left them by default and Locus in default settings after install as well, it looks to me like an optimal solution, but still not perfect. Well, you may give it a try. Thanks!

Jiří M. aka Menion

photo
1

Cannot Download file. First i got but i have deleted now i cannot download

photo
1

With Honor 7X and Android 8.0.0, track recording breaks, no matter what settings. Previous version of locus initializes complete after activating (same as when started). Current version seems to stay active in background, but recording stopps after few minutes. So this is the only thing I recognize after the last official version change. I updated Android from 7 to 8 after installation of locus. May it help/makes a difference installing locus from scratch?


For testing: on my device, the "outdooractive" app records without being stopped (excluded in the optimization settings).

Regardless to this issue - great App! Thank you for this!

Juergen

photo
1

Hi Menion, I have tested your alpha version at home for 15 minutes on my Mate 10 Pro. And it was running well. Tomorrow I will check it on my way to work (about one hour).

Stefan

photo
1

Didnt work on my Mate 9. Which settings you have in locus? Gps settings. Breaked After 5 minutes on my device

photo
1

The new beta is not working for me :(

photo
1

Didnt work on my Device too.

I think i have to change Device for a lot of money. Will never buy a huawei

photo
1

Hi guys,

as I wrote, changes in Locus Map helped to keep alive a little longer (based on my experience), but definitely not solved this problem.

I just tried "Outdooractive" application mentioned by Juergen, but it also lost GPS fix after a moment. So till now, I stil do not know a single application that is able to keep alive on my Huawei with Android 8. Support on huawei email does not react ... hard work.

So still only solution: screen turned on or connected power source (powerbank). Stupid ...

Sorry guys, I'm trying, but I'm not completely out for usaful ideas :/.


Jiří M. aka Menion

photo
1

Strange - so the behaviour is different even between the phones. I have done 3 recordings up to 7 hours without problem with this app, and setting for batterie are same as for locus. The only thing that I see is different:

Settings > battery... > start: I can set 3 options to "manual" for both apps, this is same


but:

Settings > Apps > locus > battery: here I see a part "Settings" where I can set same 3 options with "Start/manual setting" as above

For outdooractive this part "Settings" is not there, I can't adjust anything here.

So that is really strange and seems to me that there is something different how the apps installed. But at all, not very helpful to find out more.

[Edit] just checked again: I haven't removed outdooractive for battery optimization (not listet in Apps & Notifications > Apps > Settings > Special access > Ignore battery optimizations). Will remove locus there and try again...

photo
1

But locus an komoot worked with a erlier Version of android 8. I was by bike 200 km at the end of May. I used one day locus and one day komoot.

I had only one break in total 20 hours.

It was also oreo 8. But a older Version.

When i have time i will Flash lineage 15.1 custom on my Mate 9. Emoi is waste

photo
1

Hi Menion,

I've tested your version from yesterday this morning on my Mate 10 Pro. Locus map with default settings, Android with your suggested settings. And: IT WORKS!!! 48 minutes! (But with connected power cable, because battery was empty. I've just read your comment one hour before. I check it again this evening without charging.) Screenshots attached.

photo
1

Which settings. Can u describe? Didnt work with akku optmize and manuell akku settings on my Mate 9. Bricked After 5 minutes

photo
1

I hope when i have found a custom rom where i can Flash all what i need for mate 9 ican stop to check and try without success. I do it night and day. I am tired now.

I ask myself why i could Trave by bike 200 km total 20 h with only one break with older oreo?

I think 8.0.0364(c432)

Version without face unlock. There i had only one break while the Trip over 200 km

photo
1

I've read the comment "So still only solution: screen turned on or connected power source (powerbank). Stupid ..." from Menion after writing my comment. So I've edited it (power cable was connected).

I haven't changed any settings in Locus map (version from yesterday; a few comments above).

And in the phone settings I used it like Menion suggested:

Optimizations

  • Battery > App launch > manual
  • Apps & Notifications > Apps > Settings > Special access > Ignore battery optimizations > allow

photo
1

Ok i did the same without success

photo
1

Yes, Locus map was also running fine on my phone with the previous version. Since the "Face unlock" version, Locus map is frozen by the system.

photo
1

I've good news for all. I've a Mate 10 pro (bla-l09 8.0.0.142(c432), 3.31.2) and a mediapad M5 8.5 (sht-al09 8.0.0.151 (C432), 3.31.2) and both work well with locus (no interruptions of track recordings for days). The bad news are that i absolutely do not remember all the tricks I did :(. Surely I implemented all the "classic" suggestions (with Google service assisted location, too) and I whitelisted the application with adb https://support.strava.com/hc/en-us/articles/216942547-How-to-fix-GPS-recording-issues-on-Huawei-phones. Moreover, and only with the mediapad, I changed the throttle delay from 6sec to 1day (in msec).

It looked like everything doesn't work immediately but needs some time (a day) to be recognized (I made several reboot without evidence of success). So, I'm lucky and I'm here: if someone needs an information I can discover, very happy to be useful. Good work to everyone

photo
1

It would be helpful to know what you did in all steps :) white list didnt work on my Mate 9 all settings in locus i tried night and day. I think Problem is my new oreo Version. 8.0.0368

With older Version it worked better....

photo
1

Tested it on my way home without charging the phone. Frozen after about five minutes after switching off the screen. But: A colleague has got a Samsung phone. Yesterday it got an update to Android 8 and the Google timeline doesn't work anymore. Only long lines between a few points like going by plane to work.

photo
1

Thats what i say. I think it isnt conpletly a oreo problem. I didnt have big Problems befor i got the oreo Updates with face unlock.

Older oreo works better with tracking apps like locus or komoot. And from one day to another. Both Apps dont work anymore.

Downgrade is only possible with a little bit know how and with the risk to damage the device forever. When i have time i will try custom rom lineage oreo 8.1

Perhaps it will work. Or we all have to wait for an offical Update with bug fixed. But huawei Support didnt answer me. Or say they will tell Problems to huawei.... Or they tell me apps are the problem...

But all tracking apps? I cannot belive that locus komoot runtastic etc are the problem.

I think actual stock is shit

photo
1

So i finished with emui. I flashed a custom rom.

And i have to say All Problems are gone.

Tracking perfect no Breaks and perfect tracks.

Good batterie Performance too.

With Oreo 8.1.

@menion thanks for your work and Support.

You do your Job very well.

But emui is a bad stock rom.

Evetything works better on lineage remix oreo 8.1

But it was a long way with bricks till i could finish flashing successfuly. But i am happy i did

photo
1

There is available new release on Google Play since yesterday (june 21th), it's version 3.31.3, this seems to work again for huawei+oreo 8!

My device is Huawei P10 with oreo 8.0, i'm using locus map pro.

There are not mentioned any fixes regarding gps location problems in change log but it seems to be improved a lot.

@menion , is there something new regarding gps working in background?


I already did some tests:

  • walked about 90 minutes with track recording mostly in background,i've made sure that it had been staying in background mode for at least 10 to 20 minutes before waking up.
  • did also test navigation in background mode (i'm using offline BRouter) -> locus kept on talking to me
  • did also test track guidance -> locus correctly sent notification sounds for "next turn" and for "Out of route" even after beeing in background mode for some 15 minutes

I'm very happy because of locus is working again on my device.

Hopefully this is good news not only for huawei + oreo 8.0, hopefully this release also works on huawei + oreo 8.1!

I will do more testing next days!

Many thanks to everyone who is working on locus keeping it functioning on new devices and new firmware!

photo
1

Really interesting. I started an app on Huawei before sleep and it still runs, complain about disabled GPS by repeated "GPX fix lost notification", but it runs!

And as I know, I made only minor bug-fix changes in this stable version. Mystery ...

photo
1

I bought HW10 specifically because of Galileo receiver. Totally disappointed, GPS track never worked, tested on 6 different GPS trackers. Using LocusMap 3.31.3, HW10 VTR-L29 with Oreo 8.0.0.370, Battery: Launch App Manual On. Tried with HW customer support in UK, had factory reset on their advice - nothing!

I hate HW!! ;-(

photo
1

On my Mate 9 there is no better result.

Locus close After few minutes.

I did everthing in the batterie settings without success.

I dont know what i should do.

Custom roms have a bad batterie Performance at the Moment.

Batterie down After one day if i do nothing with my mate 9

photo
1

On my P10 there is no better result.

Locus close After few minutes.

I did everthing in the batterie settings without success.

I dont know what i should do.

photo
1

Same here with Mate 10 Pro, firmware 8.0.0.142

I tried every possibile setting reported here, but Locus closes after 10-20 minutes.

I was only able to keep it working by connecting a power bank for the time i needed track recording.

photo
1

I talked with huawei. They said they work to fix the problem. Dont know if its true

photo
1

Really?? Do you get some answer from their support? Ah that would be amazing :)

photo
2

Yes After a lot of weeks i didnt know that i ever wrote then :D

But i should wait. I am very angry. Summer is now. I need komoot and locus now and not in Winter

photo
1

Some who have a huawei p20 told that it work After an update. But my device mate9 dont work actually.

End of may it worked some days After only Problems with all gps Apps

photo
2
photo
1

Interesting. In case of disabled "Google Services assisted location" in Locus settings, Google Play services are not used!

We will see what this brings. Positive is, that at least something is happening ...

photo
1

At the Moment i use a Remix Custom Rom

Everything works fine.

Yesterday i did a Navigation over 6 hours.

Tracking and Navigation without any Problems.

45 % batterie i needed yesterday for the 6 hours

Took a lot of Photos too.

I think its nice.

I will stay on this custom till huawei will find a way to fix the problem on their stock.

So i know it is not a Problem of the apps.

Its a Problem of huawei and Google

Every tracker works fine now.

Its a possibility to have a very nice summer with a lot of nice trips

Now i can relax and wait for a huawei/Google fix

I hope it will help somebody.

Greets from germany

photo
1

Hi Ingo,

could you tell me please which version of the Remix Custom Rom you use?

Maybe you can tell me a good tutorial for rooting .

I use the P10 and I am so angry about the crashs of Locus during display off because huawei manufactures did a bad job. Always interrupted tracks on my phone. It makes for energy reasons no sense to keep the display on.

Arghhh!

With Endomondo most of the time there were no issues with crashes. For a workaround I take these tracks to import in Locus Map.

Thank you in advance.

Armin

Huawei P10 Build VTR-L09 8.0.0.382(C02)

photo
1

Hello steinhuhu,

First you have to unlock the bootloader of your device.

Ask Google how to do this. They explain you in xda for example how to get the unlock code from Huawei. But this is only possible for older devices.

You have to try if it is possible for you to get this unlock code.

Without is Not possible to do anything.

Huawei stoped to give unlock Codes for new devices

This people can only hope that Huawei will fix.

But i think they wont

After you have unlock your Bootloader

You have the possibility to Flash Systems and recovery with adb

But you have to know what you do cause you can brick your device forever

U will lost your warranty to.

If you finish to Open bootloader send me a new Message and i will Look which Custom should work on your device and i will explain you what you have to do

But without support and warranty. It is possible to make a lot of mistakes with flashing.

Need exactly model number of device and which Android Version you have at the Moment

I have Mate 9 so it can be Little Bit different with your phone:

I can look after you finish unlock bootloader

Root ist Not important for to flash Custom

If you Root its possible you cannot use Banking und paying with your device.

So better only flash Custom without Root

photo
1

Update: i saw at the Moment you havent the possibility to get a unlock code from Huawei

Huawei stoped this for all devices not only for the new one.

So u cannot do anything. You have to wait Till Huawei will fix this Problem

But i think they wont change her battery Save App.

Because this is the Problem

Firedance from android Hilfe did a modification of this App

So all Tracking Apps Works with stockrom too

But its only possible to fix with Open bootloader

So you can wait for a Huawei fix oder in Future buy another device.

Sorry

photo
1

Hi Ingo, ohoh... thats a pitty...

thank you for all the advices

It seems that I have to wait till huawei will fix the problem. As workaround I will probably move the locus map to my business smartphone Samsung S8. Hope that will work.

photo
1

Začal som používať PhoneMaps, ktorý spúšťam cez GPS Locker. Zápis trasy bezchybný ukladanie tiež.

Pri strate GPS signálu (pochody, tuneli ) pri východe sa GPS chyti a zápis pokračuje ďalej bez

prerušenia pri zamknutej obrazovke 2 hodiny súvisle. Používal som Locus Map pro , ale pokial

Locus neopravy chyby s nahrávanim trasy prejdem na PhoneMaps, ktorý ma kvalitné bezplatné


Rastové mapy a je funkčný zápis. Zápisy dám zdielať do Locusu, ktorý ma lepšieho správcu trati.

Huawei Mate 10 Pro

photo
1

Perhaps in English?

photo
1

oprava ( podchody, tuneli )

photo
1

Google translator ?

I started using PhoneMaps, which I run via GPS Locker. Enrolling the route without flawless storage also.

When GPS signals are lost (traces, tunnels) to the east, GPS is captured and the write continues without

interruptions on the locked screen for 2 hours continuously. I used Locus Map for, but when

Locus to fix the bugs with the uploading of the route will go to PhoneMaps, which is free of charge


Growth maps and is a functional listing. I will share the minutes with Locus, who has a better track manager.

Huawei Mate 10 Pro

photo
1

I have no idea what you want to say, but PhoneMaps crashes for me as well.

photo
1

I think huawei has a big problem to fix this at the Moment. Its not a Problem of the apps.

I still stay on a custom rom and wait if huawei can fix all with locus and komoot.

On treble custom roms everything works fine.

And the batterie Performance is okay too

But i really hope they will fix on stock rom soon too.

photo
1

I think for huawei mate 9 there is no update at the Moment. Last Version 8.0.0369 at the Moment.

I tried this stock but without success

photo
1

There is a new build b370 perhaps they fixed.

I cannot try. Cause i am on custom rom

photo
1

Good morning to all,

Locus is running again after an update yesterday!!!!!! Mate 10 Pro v 8.0.0.145

Tracked 1 hour without charging and screen off.

570df70d509b475de3930722f8ed9d8e

photo
1

Which update? Locus or Huawei?

photo
1

Thanks. I'm on a Mate 9. Wait and see.

photo
1

I am on mate 9 too. Have to wait for Update.

At the Moment there is no update.

Actual b369

Unofical b370

photo
1

Today the new Mate 10 Pro v 8.0.0.145 OTA update arrived on my phone. After reading the above comments I immediately installed it and started Locus Pro in recording mode and switched off my screen. Locus is still running after almost 8 hours so it seems the problem has finally been solved. Very happy!

photo
1

Oh thats nice. For my Mate 9 there is no update at the moment. I hope it will come soon too.

But i take it easy cause i use custom rom.

Everything work fine on it

photo
1

Just curious, which custom rom are you using?

photo
1

Offical RR OS version

Works very nice on my Mate 9

Surch under RR OS offical than you will find.

But take card. Important to flash the right Version for your device.

photo
1

Hi Menion and fellow huawei users,

I would like to share what I discovered on my Mate 9 (Stock ROM 8.0.0.369 (C432)).

The last days I played around quite a bit with track recording. During testing I as well tried different record presets to check whether the record settings can make a difference (like taking a point every 5sec vs. 2min).


Interestingly one of my profiles behaved different and did not get killed. I was able to have recording running all night long using that profile. As it turns out in this profile I had a pulse belt connected long time ago and "heart rate monitor" was set as an record option. I tried to verify and removed heart monitor on this properly running profile and now it got killed. (A pulse belt was not connected for all the testing and as far as i rember it never has been since I use my Mate 9.)


=> It seems like (at least on my device) activation of heart rate monitor does keep track recording alive. :-)


Hopefully this is helpful and you are able to verify on your devices.

Sorry for the screenshots in german language and my propably wrong translations, Locus refused to switch to English. ;)

Regards, Jan


PS: Does Huawei maybe already implemented in their firmware to keep alive tracking of heart rate but not of gps??

photo
1

Provided fix is still working fine on my phone. :-)Anybody tried this solution?

photo
1

Had i phone call yesterday with huawei Support.

Told them Problems again and that evetything i working with custom.

They will send my Informations to devoloper from huawei. They told me.

Hope so. I will belive this first if they send i Update of divices

photo
1

I have a Mate 9 and Android 8 since January or February. Locus Pro worked fine without any of the suggested optimization settings, except running Locus as a service. My last successful track recording was at June 10th. Some time later there was a system update from Huawei, and now Locus is broken, as described here in this topic.


So it is not caused by Android 8 on Huawei, but by their latest update.

photo
1

Yes we know. End of may everthing Was fine.

Problems Start in june

photo
1

There is a new komoot Update.

There are a lot of changes i think.

Does app work on huawei mate 9 now?

I cannot try cause i am on custom rom at the Moment

photo
1

Do not know. Anyone here us Komoot? :)

In Locus Map (if you wanted to say it) update are changes, that should keep app more alive then before even on Huawei devices. But unfortunately, nothing I did fixed main issue here > sleeping app/gps when the screen is off. This have to be fixed on Huawei/Honor side.

photo
1

Omg yes i meant locus of course. Sorry :D

I was in the sun too much :D

Thanks for answer than i stay on custom rom till huawei will fix this.

But i think faster i have a new Device.

Sure never huawei

photo
1

Kind reminder for my post from 2 weeks ago.

Has anyone tried the described "activation of bluetooth heart rate monitor connection"? Does it keep you recording alive?

The workaround completely solved the issue on my Mate 9. :-)

photo
1

Hello,


I tried it and it didn't work for me :/

photo
1

I think Komoot tricked Huawei. I have it running for 20 minutes now without crashing on my Mate 9. What they do? They let the app run in foreground. Means, that I can switch off the screen, but as soon as I turn it on again, Komoot is directly there. The mobile is not unlocked to this time. Is there an easy way to implement this for testing @Menion?

photo
1

Hi there,

I'm currently migrating to Huawei P20 Pro (Firmware CLT-L09 8.1.0.131 (C432), which is the currently most recent available one) and I also use Locus Pro 3.32.0 (it updated today, so I don't know which one was the previous version).

I successfully got it logging tracks for over 4h on a bike tour after having some troubles in the beginning.

The key was to disable all energy saving options as already described in this thread and run Locus as a service.

What I don't like about the P20 Pro is, that it has no barometric sensor for height correction, but at least it is working and has great battery lifetime.

photo
1

Nice for you. But this is due to your firmware, not essentially your settings. The issue described does not exist for P20 Pro anymore. Same goes for Mate 10 Pro afaik.

photo
1

Now i tried komoot with stock rom on my Mate 9 without success.

I had custom rom till yesterday there locus and komoot works perfect

After my device batterie was empty yesterday i had a bootloop so i had to go back to emui first.

That's why i am on emui at the moment.

Could try locus and komoot without success

photo
1

There ist a new update for mate 9

Its unoffical but i check it at the moment b372

But without success. Locus and komoot crash after few minutes.

So there is no reason to be happy about this update.

I tell you cause i had hope now i am sad

photo
1

I tried an app which calls gpsLogger II

It works without crashes 3 hours in background.

It the one and only for huawei at the moment.

Perhaps its possible to watch the code of this application to fix problems with locus

photo
1

Not working for me.. crashing after 15 Minutes

photo
1

GPS Locker 2 with Locus Map works flawlessly on my Nokia 7 plus for several hours. For me at the moment solves the recording of routes. I think the very competent developers of Locus will solve this problem. Thank you for your work.

photo
1

I can acknowledge, that last update of Android solved the issue with killing Locusmap and other apps running in background. For Honor 10 View, you need update BKL-L09 8.0.0.163(C432).

Caution: this update was not visible in Honor's update utility even after using button "Check update ..." I had to use triple dot menu in upper right corner and select something like " Download last full firmware." Only after that the information about new wf appears. Strange.

Thank you, Menion, for supporting Huawei's users even it was fw issue!

photo
1

I can agree with Jan Kuc that this issue seems to be solved for Honor 7 as well. With new patch 8.0.0.332(C432) automatically installed last week (revision date 01. July) I could successful record a 1 hour track with default settings in Locus and without using "Locus Map as a service". Great! Thank you Menion for your effort!

photo
1

Same problem on my Huawei p10 plus. When the phone was brand new with initial software ( I think was android 7 but not sure) the Locus maps pro works perfect with no interruption for hours and hours. After updating my phone to android 8 the problems began. Now I stop time to time and check the phone and start again the recording. In my case the application is stopped at all. When I reopen the app, the initialization process is displayed and I have to wait every time to reconnect to satellites. All settings are set right- gps setting from locus, and all settings from android to ignore the app when is using battery. there is no power saving / ultra power saving mode activated.

yesterday I made an emui update to vky l29 8.0.0.375 (c432) - still not working :(

photo
1

Hi Dragos, my wife has also got a P10 Plus. The phone runs with the present firmware here in Germany. It's 8.0.0.370 (c55) and Locus works fine on this phone. Perhaps this helps. Stefan

photo
1

Have to confirm, that FW L29 8.0.0.375 is still killing the app within 10 minutes of switched-off screen. I wish I could easily downgrade to ..370 version. I have Huawei P10. Otherwise the phone and Locus work perfect!! What is interesting, that when the recording is off, then Locus stays on for several hours. Only when I start recording and the screen goes off the killing happens.

photo
1

I also loose GPS tracking when display is turned off. During the last weeks I tried out nearly everything on my Huawei Mate 9 (see also http://docs.locusmap.eu/doku.php?id=manual:faq:gps_lost_fix_android6):

- Locus Map Pro - GPS Settings "Disable GPS when Screen is off" disabled

- Android - Battery optimization set to "ignore" for Locus Map Pro

- Android - Setting "Close apps after screen lock" disabled

- Android - "Power saving mode" & "Ultra power saving" disabled

- App "GPS Keeper"


Unfortunately, these measures did not work! :(

The only thing I did not try was the App "Memory Locker" as I would need to root my device. However, I did not want to do this as other users had problems with rooting their Huawei Mate 9 and I already spent so much time on this issue.

-> Is there any final solution yet for a Huawei Mate 9?

PS: Additionally, I tried other GPS tracking apps such as "Ortovox Bergtouren" -> same problem there, so I guess it's an Android and not LocusMaps problem?! Thanks!

photo
1

My Huawei Mate 9 received a system update to 8.0.0.373(C423) two days ago, but unfortunately this didn't cure the problem, it still exists.

photo
1

I use Nokia 7 Plus and have same problem too...

The app is off around an hour and cannot keep tracking the route...

photo
1

Hi,

I am using a P20 with FW EML-L09 8.1.0.120 (C782). I have the same trouble with Locus Pro as mentioned above - lost GPS, Recording is interrupted etc.

...but my App for running "Nike Run Club" is working perfectly - it records my runs for 30 minutes or longer and tracks it without any faults... - so maybe it's not a FW problem?

Greetz

Boris

photo
2

Had same problem with Nokia 7 plus. But after installing "Wake Lock" https://play.google.com/store/apps/details?id=eu.thedarken.wldonate with option "Processor" active Locus runs all day long without interruptions.

Has anyone tried if same works on Huawei?

photo
1

Hi Steen,

thanks for your post - I tried it with my P20 and it works! I recorded a 4,5 h bike trip without any trouble :-)

So if someone of the locus staff is following this discussion, pls implement this feature in locus.

Cheers

Boris

photo
1

Hi guys,

if this works, I believe it will have a different reason. Based on what I read, this app just uses wake-lock system that keeps the system awake. But exactly this use Locus Map as well. As we saw, only apps that use GPS are killed after some time. Better: system seems to ignore apps that hold wake lock in case, they drain the battery with active GPS.

This small app does not use GPS, but keep enabled "wake lock". So it keeps your device awake and the system has no reason to kill it. Thanks to this, Locus Map and most probably any other application that needs GPS, may run without a problem, simply because the system is awake due to this small app.

Anyway ... interesting. If above is correct, then we can still do nothing because there is a need to have an app with active "wake lock", but that does not use GPS.

photo
1

Hi,

thanks for your info, but why is my Nike Running App working too? This App uses GPS as well... As I mentioned before it tracks my runs for 30 minutes + more...

Greetz

Boris

photo
1

Do not know. Anyway if it really works, then it is the first app I know that works correctly. Maybe also some really low-level apps wrote in native C++ (like Sygic) may work as well, do not know. Maybe your Nike app is also written in little bit different system like Sygic.

photo
1

You can give it a try - it's a free app ;-)

photo
1

Tried it on a p10. Does not work, Locus got killed within minutes. 

On Mon, 17 Sep 2018, 09:06 Locus Map, <locus.map@asamm.com> wrote:

photo
1

it's really sad not to have stable tracking in Locus because of hardware manufacturer reasons.

On my P10 I miss the funtionality very hard. Strange is that with Endomondo app the tracking works most if the display is off.

I understood the impact with app crash is valid for all application using GPS.

Any idea?

photo
1

I go a new FW EM-L09 8.1.0.152(C782) for my P20. I just did a short test with Locus but it's still not working. So I keep on using the "Wake Lock" app...

photo
1

My Huawei Mate 9 received another system update, from 8.0.0.373(C423) to 8.0.0.375(C423). As before, it doesn't solve the problem. Wake Lock doesn't show any effect my Mate 9 as well, so I'm pretty lost. Last week was my second hiking vacation since this issue showed up where I wasn't able to track my routes. Very annoying.

photo
1

Je něco nového? Po MATE 8 kde vše fungovalo bez sebemenšího zaváhání (záznam trasy i 24h) jsem si pořídil MATE 9 8.0.0.375 (C432) kde nejsem schopen aplikaci rozchodit. Ať nastavuji co chci stále padá, je to velké zklamání :-( :-( :-(


Google Translate, CZ > EN:

Is there something new? After MATE 8 where everything worked without the slightest hesitation (record of the route and 24h) I bought MATE 9 8.0.0.375 (C432) where I am unable to break the application. No matter what I want to keep falling, it's a big disappointment :-( :-( :-(

photo
1

Milan, as I know, no changes. I have confirmed from one guy who was able to communicate with Huawei support, that this is something they work on ... unfortunately, it does not look so.

Keeping screen on or using power bank (device connected to power source) seems to be only options here.

photo
1

By nebyl problém, alespoň dočasně, opravit chybu výrobce, vyřešit některé aplikace, které by mohly prosvětlí obrazovku v pravidelných intervalech? Nebo snad pracovat přímo do Locus? Na kole by občas vejde do palubní desky. Jen po dobu dvou sekund na obrazovce by se rozsvítit s uzamčené kontrolou.


CZ: Nedal by se ten problém alespoň dočasně, než výrobce chybu opraví, řešit nějakou aplikací, která by dokázala v pravidelných intervalech rozsvítit obrazovku? Případně tu funkci rovnou zapracovat do Locusu? Na kole by se občas hodila k nahlédnutí na dashboard. Stačilo by třeba na dvě vteřiny obrazovku rozsvítit se zablokováným ovládáním.

photo
1

Hi together, as so many users have the issue I would like mention once again the solution that solved it for me.


I actived the option Bluetooth Heartrate device in the options of a tracking profile. If you start recording Locus asks to active bluetooth (if not already on), which I accept.


Since I figured this out 5 month ago, I had never again a stopped/broken recording and I recorded more than 20 tracks >2h since then.


Really hope this helps / works for any of you as well.

photo
1

yes it does - in combination with turned off battery safe mode :-)

photo
1

The trick with the heartrate device doesn't work on my Mate 9. When I start recording, I'm prompted to choose a Bluetooth device, but since I don't have a heartrate device, I can't choose. A few minutes later Locus has been killed by the OS, as usual.

Does anybody have hint where to complain at Huawei?

photo
1

Hi Frank, I dont have any heart rate device paired either. So this shouldnt be necessary.

I am not asked to pair anything. I just ticked the option in the profile setting and start the recording. If bluetooth is already on at start, I am asked nothing at all.

photo
1

hello, I tried the Heart Rate Device activation procedure, but I do not know if I did everything as I had. Still not working properly. Can you please describe the point by point, what to do, including screenshots. Thank you.

photo
3

I'd like to inform you that Locus works properly on Honor 10, COL-L29 8.1.0.148(C432). The mentioned settings for battery and app are needed.

photo
1

I found this site because i have the same issue with my "BLE in foreground service"-app on my Honor 7x test device.

What worked for me after many hours of testing/resetting the device/testing again...

(in the Honor 7x Android 8.0 update the "protected apps" list is missing and you can't whitelist the app propertly)


- Enable Developer options

- Enable USB Debugging

- Connect Phone via USB to pc/mac with Android SDK installed

- use adb to disable the freaking power management on the device


open a terminal and type

adb shell 
pm disable-user com.huawei.systemmanager 
pm disable-user com.huawei.powergenie


- reboot phone

- Foreground-Service doesn't freezing anymore


it is not a build-in solution but stops the source of the problem ;-/

photo
1

Also on my Huawei P10, Locus Map Pro is killed few minutes after screen is turned off. No setting on app, battery, etc. seems to have any effect. The app worked fine before the OS update to Android 8.

The Huawei support don't give me any solution.

I also found that:

1) the app "GPS Locker" is killed too.

2) the app "Huawei Health" works!!! Aaaaargh!!! I have reported this incorrect behavior to the competition and market authority in Italy. Locus Map is 100.000 times better than Huawei Health!

3) I've also tried to run Locus Map together with Huawei Health. After 30 minutes it's killed again, with "Health" still working!

photo
4

Hello guys,

With my P10 (Android 8.0) sadly I am next member of "disappointed Huawei users" with Locus problems.


After reading the discussion I've tried all recommended tips&tricks to keep recording alive in backround with no possitive result. Recording was still interrupted within 10 minutes.

Then I've tried next experiment - start recording directly from homescreen trough widget (with no previous Locus launch). Recording has remained live in background for more than half a hour without mobile data and display turned off. Just pure GPS. Than it was turned off manually by me.

Since that, I've been recording many tracks on bike, or hiking and no one of those tracks was interrupted during training (including 4-5hr trainings). During recording I get used to look in map or take some picture, so screen is waked up aproximately once in 1-2hr.

It looks like this solution helped me

photo
1