B4J Question Is it possible to get GPS position from a google account with code ?

Magma

Expert
Licensed User
Longtime User
Hi there...

well we all know - there are libraries to get position from an android device that have GPS or a simple wifi...

+ we know that Google account have an option to find your device...

https://myaccount.google.com/intro/find-your-phone

is it possible - programmatically (with code at b4j preferably) get the latx and laty from google account (ofcourse if you have username-email / password)

and how often change (latx,laty at google account) that ?

Thanks in advance
 

DonManfred

Expert
Licensed User
Longtime User
If you find official java code we can help you port it.
I do not think that there is an API for that.
 
Upvote 0

kohle

Active Member
Licensed User
Longtime User
Hi,
I dont think you will get access to this google apis.

What I did :
I made 2 apps which can receive and send firebase notifications.
app A send following notification to app B : "location please"
app B receive and interprete the notification and do the following :
Connect to GPS or google locations (internet position) and read position. close connection
Send a notification with coordinates to app A.
You click on the received notification and open google maps.

No drain of battery, because GPS is only on when you request the position.

Maybe this helps.
 
Upvote 0
Top