Skip to content

"Location request timed out" when navigator.geolocation.getCurrentPosition #4

@JaxGit

Description

@JaxGit

Environment:
Genemotion 2.7.2 - Google Nexus 5 (Android 6.0.0); device OPPO R7SM (Android 5.1.1)
RN 0.29.1

navigator.geolocation.getCurrentPosition will timeout instantly on simulator or device. Only after I add {enableHighAccuracy: true, timeout: 20000, maximumAge: 1000} as the 3rd parameter it starts to work fine.

However I also found this issue which reported that enableHighAccuracy: true will not work with RN 0.25.1, RN 0.28.0 on Android 6 device, so I am not sure if this setting with RN 0.29.1 will still affect other devices.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions