[Solved] Fused Location always returns null

Add this code to your onConnected, thats where it would get Last Known Location. private static Location mLastLocation; private static GoogleApiClient mGoogleApiClient; private static Context context; // added private LocationRequest mLocationRequest; private Double latitude; private Double longitude; private String TAG = “”; // set your TAG @Override public void onConnected(Bundle bundle) { if (ActivityCompat.checkSelfPermission(context, Manifest.permission.ACCESS_FINE_LOCATION) … Read more

[Solved] I need to implement a flutter app, when 2 phones come near it must alert the 2 phones [closed]

You can use the location of the device and store the lat and long of the device in the backend(probably AWS if you are using it!). Every device registers to your app will be sending its realtime lat and long to your backend. You can have some sort of computation or graph-based analysis in the … Read more

[Solved] Cannot get Geolocation script to work

This is not a proper answer yet, as it is still unclear what the actual problem is, but to explain to OP, I’ll post this as an answer. $.getScript(‘http://www.geoplugin.net/javascript.gp’, function() { $location = geoplugin_countryCode(); $location2 = geoplugin_continentCode(); if($location == “CA” || $location == “US” || $location2 == “EU” || $location2 == “DE” || $location2 == … Read more