Also, @msr79526 There is a method isLocationServicesEnabled to check if location services is enabled or not?? & required permissions will be asked in runtime by extension if the permission arenot given by getLatitude & getLongitude method…
isLocationServicesEnabled
getLatitude
getLongitude
More :