You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RNLocation not working in Android when mobile in sleep mode but the same configuration method works well in iOS. RNLocation.configure({ distanceFilter: 10, // Meters desiredAccuracy: { ios: "best", android: "highAccuracy" }, // Android only androidProvider: "auto", interval: 2000, // Milliseconds fastestInterval: 20000, // Milliseconds maxWaitTime: 10000, // Milliseconds // iOS Only activityType: "other", allowsBackgroundLocationUpdates: true, headingFilter: 1, // Degrees headingOrientation: "portrait", pausesLocationUpdatesAutomatically: false, showsBackgroundLocationIndicator: true, })
Get Location using RNLocation.subscribeToLocationUpdates method.
AndroidManifest:
`
RNLocation not working in Android when mobile in sleep mode but the same configuration method works well in iOS.
RNLocation.configure({ distanceFilter: 10, // Meters desiredAccuracy: { ios: "best", android: "highAccuracy" }, // Android only androidProvider: "auto", interval: 2000, // Milliseconds fastestInterval: 20000, // Milliseconds maxWaitTime: 10000, // Milliseconds // iOS Only activityType: "other", allowsBackgroundLocationUpdates: true, headingFilter: 1, // Degrees headingOrientation: "portrait", pausesLocationUpdatesAutomatically: false, showsBackgroundLocationIndicator: true, })
Get Location using RNLocation.subscribeToLocationUpdates method.
AndroidManifest:
`
The text was updated successfully, but these errors were encountered: