Android and iPhone location manager implementation
Android
I have implement Fused Location Provider Client for get user locations and make creative games like Pokemon. With this implementation I have to migrate Android project to AndroidX because of latest location library has androidx libraries and it gives errors while compiling java project. In additional I have implement ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION permissions.
iPhone
I have implement CLLocationManager for get user locations and make creative games like Pokemon. In iPhone you need to ask location usage permission to user so I have implement request_permission(const String &p_name)
method to iPhone such as Android and add NSLocationWhenInUseUsageDescription
check box to export options.
Comments
This is basic implementation and I opened this PR to see missing things such as true implementation of LocationManager
, LocationParam
, LocationResult
, memory usage(memnew and memdelete) and module definition and usage. After if review is okay, I will add documentation. I will push commits for master branch.
Sample Project
You can test this branch with this sample project
Thank you. Cagdas.
Bugsquad edit: This closes https://github.com/godotengine/godot-proposals/issues/57.