-
Notifications
You must be signed in to change notification settings - Fork 508
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
Navigation issue when useHybridComposition = true on Android 9 #954
Comments
Line 78 in b29092e
That how its solved in the example. For me we have three options:
So i would suggest to do a PR with 2) as this is a quick fix - as we try to workout either 1) or 3) |
I guess my question should be what are, if any, the side effects for doing 2 for Android 12? IIRC, one of the reasons hybrid composition was added was because not using it could cause issues on Android 12. |
Yeah it would keep having some issues with e.g. rotation. But at least it would not be new issues surprising devs, and they would be less critical than this. We can also put some example code into the readme or even add a static function to initialize composition that the dev can call when the app is starting up |
We are using hybrid mode on our dedicated Android 9 device. Have been doing so since before this repo was forked from tobrun's original repo. And we've also switched to hybrid mode ourselves before it was implemented because of two reasons:
Recently we tried to use your repository but found the same issue of map being displayed all the time, even if you push a page infront of it. We are able to render a widget on top of mapbox, but whole page for some reason does not render. So we switched back to our repo for the time being. Meaning - we do use hybrid mode successfully on Android 9 but from the diff it is not clear, why it behaves correctly and why your repo does not. We can make it publically available if anybody is interested. Please don't close this issue before resolving it. |
yeah that might be interesting indeed |
Hello everyone 👋 I have found a fix for the map appear on all pages when You have to add to replace in MapboxMapBuilder.java line 17 |
Must be related #1008 (comment) thanks for the .textureMode(true) that's what saved me BUT now I get 1000s of prints... |
This fix was from this issue forum: flutter-mapbox-gl#954
Using the latest master (b29092e) results in the map showing in front of any navigation. For example, showing an input form when the map is open, will briefly show the form (flashed on the screen), then what appears to be a new map instance shown in front of it.
Reproducible on Android 9. Based on by testing, everything works as expected iOS 15 and Android 12.
Workaround is to set
useHybridComposition
tofalse
.@yoavrofe, I'm tagging you because you submitted the
useHybridComposition
change and thought you might be able to offer some insight.Example app:
The text was updated successfully, but these errors were encountered: