Voice navigation/routing instructions are not working in background/sleep mode #573
Labels
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
2 participants
Due date
No due date set.
Dependencies
No dependencies set.
Reference: organicmaps/organicmaps-tmp#573
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Using on Lineage 17.1 based on Android 10.
When the phone locks and goes into sleeping mode, the voice disappear. I've noticed this on OM v2021.05.21 and it's still present on v2021.06.07
Did the voice work while locked in older versions?
I discovered OM on F-Droid where it started
appearing from v2021.05.21
On Sat, 2021-06-12 at 23:16 -0700, Alexander
Borsuk wrote:
Hi G-i-o, I'm also using on Lineage 17.1 based on Android 10, mine is on a redmi note 8, but I can't get the voice working. Did you install MicroG ?
Hi Tangsgod. No, I don't use Google services so my
Lineage installation was the bare one. All other
apps that have voice/sound/music running during
the lock state work except one (Breath). On this
the developer has already admitted that the app
need updating to something Android have changed in
the recent years and he's not sure how to do it.
He mentioned that the problem to overcome occurs
when the sounds to be played are not a sequence
like a in a playlist. So, i speculate that the
problem could be the same as on OM.
On Sun, 2021-06-13 at 11:09 -0700, tangsgod wrote:
Navigation in background mode is not yet implemented on Android.
It works for OsmAnd and OpenTracks.
On Tue, 2021-06-15 at 22:20 -0700, Roman Tsisyk
wrote:
I really thin this is an important feature! I still have to use Google Maps all the time because there is no navigation possible with OM for my needs. Most of the people i know use navigation with the screen turned off aswell.
Can we put together some things that have to be done, some things that are already finished and maybe a rough ETA?
For the app https://github.com/kylecorry31/Trail-Sense, there is the option to allow location "all the time", we may need to add that for this to work.
From a quick looks you would probably need the
android.permission.ACCESS_BACKGROUND_LOCATION
(055bc88fc8/app/src/main/AndroidManifest.xml (L15)
) premission for this to work, that I don't see requested infdf632e213/android/AndroidManifest.xml
May be 100% wrong, so feel free to correct me
I was messing around a lot with the ancestor app and this one trying to get navigation to work when the phone is in my pocket. Seems like the background permission would be all that's needed?
No, the background service should be user-visible to keep it always working.
I think it's how OSMand has it implemented (not entirely sure) in manifest: https://github.com/osmandapp/OsmAnd/blob/master/OsmAnd/AndroidManifest.xml#L1130-L1140
But basically they have a silent notification which probably keeps it on foreground (take it with a big grain of salt) or notification is for other purposes.
This issue reads as if this should be working on iOS. Tested it, but similar to Android as soon as the screen is turned off, voice navigation remained silent on turns. Am I just missing a setting on iOS or should this issue be renamed since it is not limited to Android?
You're right. I've corrected the title. Thanks!