FossifyOrg / Messages

An easy and quick way of managing SMS and MMS messages without ads.
https://www.fossify.org
GNU General Public License v3.0
414 stars 29 forks source link

Format geo URI as clickable #175

Open Raffael7777 opened 1 month ago

Raffael7777 commented 1 month ago

Checklist

Feature description

When a geo URI is sent, it would be formatted as clickable with an underline, similar to a hyperlink, and any user clicking it would either open the app associated with the intent, or be prompted as to which app they wanted to open it with.

Why do you want this feature?

I want to be able to click geo URIs others send me and have them open a corresponding app, instead of having to copy and paste the coordinates.

Additional information

No response

Aga-C commented 1 month ago

Does any map app share location only as geo URIs, so this function would be needed? From what I've checked, map apps always send normal URLs when using the share option.

Raffael7777 commented 1 month ago

There are numerous automation apps that have access to GPS coordinate values that can automatically respond to texts with that data if set up to. However, the sending phone don't know which map app the receiving phone might have access to, so formatting it as a proprietary URL scheme is a gamble. For example, on an Android phone with Google maps disabled or not installed at all, clicking a Google maps URL in an SMS will attempt to open the URL in the browser window, the OS does not attempt to recognize the intent and pass it to another map app, which might not even be able to understand the Google maps URL if the developer hasn't planned for that use case. I assume Google maps would likewise ignore a URL formatted for OSM, or Organic maps.

Organic maps, Osmand~, Google maps, and likely more third party maps, correctly open geo URI coordinates when clicking a formatted hyperlink (<a href="geo:...">Link</a>) on a webpage. It's an established permanent URI scheme (like tel, mailto, https, ftp) and as far as I can tell universally understood and supported by all Android map apps (but not by Apple maps). I'm not suggesting all URIs need to be clickable, but because location data is frequently sent via SMS, I think it makes sense to format it so it is clickable.