Page 1 of 1

Sharing place from Google Maps missed

Posted: Fri Jan 27, 2023 4:19 am
by jidanni
Many apps appear responsive to this share. All except your app.

Code: Select all

intent:#Intent;action=android.intent.action.SEND;category=android.intent.category.LAUNCHER;type=text/plain;launchFlags=0x10000000;S.android.intent.extra.SUBJECT=24%C2%B011'00.4%22N%20120%C2%B042'54.8%22E;S.android.intent.extra.TEXT=24%C2%B011'00.4%22N%20120%C2%B042'54.8%22E%0Ahttps%3A%2F%2Fgoo.gl%2Fmaps%2Fmuyq5asUJUNYPSCNA;end

Re: Sharing place from Google Maps missed

Posted: Fri Jan 27, 2023 4:23 am
by jidanni
To the user, it seems he is just sending a longitude and latitude, and hoping some app will pick up on it.

All I did was press the share button here:
Screenshot_20230127-122135_Maps.jpg
(338.3 KiB) Not downloaded yet

Re: Sharing place from Google Maps missed

Posted: Fri Jan 27, 2023 4:27 am
by jidanni
Okay, it just seems we are sharing these kind of strings "Value: No. 81, Jiangong Ln, Beitun District
https://maps.app.goo.gl/FiVobBunmvmA3u1D8".

So the only way your app could locate such a point would be to go online and connect to Google and resolve the URL to pick out the real longitude and latitude.

Re: Sharing place from Google Maps missed

Posted: Fri Jan 27, 2023 4:28 am
by jidanni
You could use the HTTP HEAD command.

Re: Sharing place from Google Maps missed

Posted: Fri Jan 27, 2023 2:29 pm
by Psyberia-Support
I'm sorry but it doesn't make sense to respond when the user share a text, this is the job of text and messaging apps.
The app already responds to all common ways to share places and coordinates (in particular "geo:" intents that are exactly made for this).