I hope you find a better and generic solution for a fetch of the current location using fused Api client providers. I hope its a better solution in understanding and generic utility to used in MVP and MVVM application Software Architecture Design Pattern.
Permission’s required in device
Utility Code in Kotlin
This is enough to maintain the location ambiguity for redefine in each activity.Just put the file as utility and call in application file whenever used in whole project or a activity. Best way to reuse the code and less consuming time for development.
Hope, i try to do my best. Please give me comments and like my post for future updates.
Author: Gurwinder Singh
Visit the link to read more from https://medium.com/@gurwindersingh_37022