react-native-geolocation-service icon indicating copy to clipboard operation
react-native-geolocation-service copied to clipboard

[iOS] How to set activityType ?

Open padupuy opened this issue 5 years ago • 1 comments

Hi, According to the documentation, it seems to be interesting to be able to change the value of the activityType property

activityType * * Discussion: * Specifies the type of user activity. Currently affects behavior such as * the determination of when location updates may be automatically paused. * By default, CLActivityTypeOther is used.

Types :

  • other : The location manager is being used for an unknown activity.
  • automotiveNavigation : The location manager is being used specifically during vehicular navigation to track location changes to the automobile.
  • fitness : The location manager is being used to track fitness activities such as walking, running, cycling, and so on.
  • otherNavigation : The location manager is being used to track movements for other types of vehicular navigation that are not automobile related.
  • airborne : The location manager is being used specifically during airborne activities.

padupuy avatar Sep 01 '20 15:09 padupuy

This is not yet implemented in the library. I'll check it out when I can, PR is always welcome though :)

Agontuk avatar Sep 05 '20 14:09 Agontuk