-
-
Notifications
You must be signed in to change notification settings - Fork 848
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
[Bug]: Camera.onUserTrackingModeChange not called on followUserMode change on Android #3017
Comments
any updates on this, can I help fix it in any way? |
@andrei-tofan sorry I did not have time to look into it. Trying on current main or 10.1 beta-s would help. You can also try to debug the viewport code https://github.com/rnmapbox/maps/pull/2767/files |
Tested with v10.1.0-beta.11 and the issue is still there, will have a look. Thanks! |
Hm I don't seem to be able to reproduce the issue with the included sample code: Screen.Recording.2023-10-13.at.13.54.30.mov |
Can you also include the logs to see if the
gets called? |
The button's were changed so it got called. This is the console log: LOG Running "RNMapboxGLExample" with {"rootTag":21}
LOG onUserTrackingModeChange([object Object])
LOG onUserTrackingModeChange([object Object])
LOG mode normal
LOG onUserTrackingModeChange([object Object])
LOG onUserTrackingModeChange([object Object])
LOG mode compass
LOG onUserTrackingModeChange([object Object])
LOG onUserTrackingModeChange([object Object])
LOG mode normal
LOG onUserTrackingModeChange([object Object])
LOG onUserTrackingModeChange([object Object])
LOG mode compass
LOG onUserTrackingModeChange([object Object])
LOG onUserTrackingModeChange([object Object]) |
Hi @mfazekas, I am a colleague of @andrei-tofan and helping him with this issue, hence why I also get involved in this thread. We are not getting the onUserTrackingModeChange log in the same way as you on Android. See the attached video where I try to illustrate when it is firing only when dragging on the map with finger (an android phone running os 9). IMG_7407.MOVI have also tested on an Android tablet with os 11 and having the same problem there. On iOS it is firing on every mode change, just as in your console log example. I hope this helps in illustrating the problem we are having, but let me know if we can provide further info. |
Hi @mfazekas, I've attached a video created using the example app in the project showing the behaviour on iOS and what I think should happen on Android as well. |
@jaltin Ok sorry I wasn't careful enough reading the issue. So you're missing |
Yes, and because of this we don't know if the mode was really changed. Ideally, |
@andrei-tofan this should be addressed in 10.1.0-beta.13 |
@mfazekas thank you for the fix, tested and
Let me know if I should open a separate issue for this. |
@mfazekas I will open 2 separate issues for the items from the comment above |
Mapbox Implementation
Mapbox
Mapbox Version
default
Platform
Android
@rnmapbox/maps
version10.0.12
Standalone component to reproduce
Observed behavior and steps to reproduce
When changing the
followUserMode
, theonUserTrackingModeChange
callback is called on iOS but is not called on Android.Expected behavior
The
onUserTrackingModeChange
callback should be called on both platforms.Notes / preliminary analysis
No response
Additional links and references
Found a comment about this issue here:
#1090
The text was updated successfully, but these errors were encountered: