Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handling of a "maps.google.com...." link #503

Open
herrdeh opened this issue Mar 14, 2018 · 20 comments
Open

handling of a "maps.google.com...." link #503

herrdeh opened this issue Mar 14, 2018 · 20 comments

Comments

@herrdeh
Copy link

herrdeh commented Mar 14, 2018

Is there a possibility to handle the very common type of link

https://maps.google.com/maps?ll=52.50863,13.32176&z=12&t=m&hl=de&gl=US&mapclient=embed&daddr=Ma%C3%9Fschuhe%20Berlin%20Goethestra%C3%9Fe%2082%2010623%20Berlin%20Deutschland@52.50863,13.32176

in a better way? - My phone only offers some possibilities to install G**gle maps - which is not what I want...

@ildar
Copy link

ildar commented Mar 15, 2018 via email

@herrdeh
Copy link
Author

herrdeh commented Mar 15, 2018

Thanks. That's what I thought.
But whenever I click a g maps link, I'm only offered play store, yalp store and f-droid - guiding me to an install of google maps. How can I get an option to choose any other maps app?

@n76
Copy link

n76 commented Mar 15, 2018

Not positive, but I think if you have OsmAnd and/or Maps.me installed they should show up as options for g maps links.

@herrdeh
Copy link
Author

herrdeh commented Mar 15, 2018

OK. Installed maps.me (nice, BTW, thanks for the hint) - but still only options for installing g*maps show up... ):

screenshot_20180315-171314

@conrad-heimbold
Copy link

@herrdeh: could you please

  1. install "Intent Intercept" (Dev tool to view inter-app communication) - https://f-droid.org/app/de.k3b.android.intentintercept
  2. Open some google maps link again
  3. Post the result of intent intercept?

That would be very useful for debugging!

After doing these steps, you can remove the app "intent intercept" again.
Thank you in advance!

@conrad-heimbold
Copy link

conrad-heimbold commented Apr 6, 2018

In my case / on my phone: Inside chrome when searching for "Maßschuhe Berlin Berlin",

  • either google maps inside the browser got opened (when clicking on the scaled-down map or on "route description")
  • or I got the option to open the location inside Osmand / Sygic
    (when clicking on the text "MAPS")

@herrdeh
Copy link
Author

herrdeh commented Apr 6, 2018

Hello, thanks for taking care of this issue.

With opera mini, at this screen:
screenshot_20180406-115151

intent delivers:

intent://search?q=pname%3Acom.google.android.apps.maps#Intent;scheme=ma
rket;category=android.intent.category.BROWSABLE;launchFlags=0x3000000;e
nd

ACTION: android.intent.action.VIEW
DATA: market://search?q=pname%3Acom.google.android.apps.maps
URI:
intent://search?q=pname%3Acom.google.android.apps.maps#Intent;scheme=ma
rket;category=android.intent.category.BROWSABLE;launchFlags=0x3000000;e
nd
CATEGORY:
android.intent.category.BROWSABLE
FLAGS:
FLAG_ACTIVITY_FORWARD_RESULT
FLAG_ACTIVITY_PREVIOUS_IS_TOP


AUFRUFBARE ACTIVITIES
Play Store (com.android.vending -
com.google.android.finsky.activities.MainActivity)
Yalp Store (com.github.yeriomin.yalpstore -
com.github.yeriomin.yalpstore.SearchActivity)
F-Droid (org.fdroid.fdroid -
org.fdroid.fdroid.views.main.MainActivity)

With jelly browser (default from lineageOS), no screenshot is possible, intent delivers this:

intent://search?q=pname:com.google.android.apps.maps#Intent;scheme=mark
et;category=android.intent.category.BROWSABLE;launchFlags=0x3000000;end

ACTION: android.intent.action.VIEW
DATA: market://search?q=pname:com.google.android.apps.maps
URI:
intent://search?q=pname:com.google.android.apps.maps#Intent;scheme=mark
et;category=android.intent.category.BROWSABLE;launchFlags=0x3000000;end
CATEGORY:
android.intent.category.BROWSABLE
FLAGS:
FLAG_ACTIVITY_FORWARD_RESULT
FLAG_ACTIVITY_PREVIOUS_IS_TOP


AUFRUFBARE ACTIVITIES
Play Store (com.android.vending -
com.google.android.finsky.activities.MainActivity)
Yalp Store (com.github.yeriomin.yalpstore -
com.github.yeriomin.yalpstore.SearchActivity)
F-Droid (org.fdroid.fdroid -
org.fdroid.fdroid.views.main.MainActivity)

@herrdeh
Copy link
Author

herrdeh commented Apr 6, 2018

Hope this helps...

@conrad-heimbold
Copy link

conrad-heimbold commented Apr 12, 2018

Sorry for the late answer, and thank you for your answer!
As I can see, the links you clicked on did not provide any geographical information to the intent / app. So I would recommend you to choose any other link / button on the website:

  • the flipped around water drop sign and adress in the middle
  • the "MAPS" tab on the top
  • the "route description" in the middle

@herrdeh
Copy link
Author

herrdeh commented May 18, 2018

Hello, sorry, this came out of my focus for some time.
I'm still annoyed by the issue. I checked all links on a google hit which should contain geo infos, such as "route planner", "address" and "map". Each of them seems in fact not to contain any geo info, but only the link to google maps displayed above in this thread.

What's going wrong here? - Is it the same mistake in opera mini as well as in jelly browser, both of them providing nonsense links? - So should I ask browser people about it?

@ildar
Copy link

ildar commented May 18, 2018 via email

@herrdeh
Copy link
Author

herrdeh commented May 19, 2018

I installed OSMand+ - and found the same situation:
I'm ever prompted to choose from play store, yalp store and f-droid.

@ildar
Copy link

ildar commented May 20, 2018 via email

@herrdeh
Copy link
Author

herrdeh commented May 23, 2018

Hm. It is not. What I did:

  • install "Intent Intercept"
  • launch jelly browser (same with opera mini)
  • google for "kloster chorin" in this example
  • hit the "route planner" link
  • choose "catch intent2 from the list to pop up (other entries: play store, yalp store, f-droid)
  • copy the results from "intent intercept"
  • do the same with the "location" and the "map link

Here are the results from intent intercept:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
route planner :

intent://search?q=pname:com.google.android.apps.maps#Intent;scheme=mark
et;category=android.intent.category.BROWSABLE;launchFlags=0x3000000;end

ACTION: android.intent.action.VIEW
DATA: market://search?q=pname:com.google.android.apps.maps
URI:
intent://search?q=pname:com.google.android.apps.maps#Intent;scheme=mark
et;category=android.intent.category.BROWSABLE;launchFlags=0x3000000;end
CATEGORY:
android.intent.category.BROWSABLE
FLAGS:
FLAG_ACTIVITY_FORWARD_RESULT
FLAG_ACTIVITY_PREVIOUS_IS_TOP


AUFRUFBARE ACTIVITIES
Play Store (com.android.vending -
com.google.android.finsky.activities.MainActivity)
Yalp Store (com.github.yeriomin.yalpstore -
com.github.yeriomin.yalpstore.SearchActivity)
F-Droid (org.fdroid.fdroid - org.fdroid.fdroid.views.main.MainActivity)


onActivityResult:
resultCode: 0
++++++++++++++++++++++++++++++++++++++++++++++++++++++++

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

location:

intent://search?q=pname:com.google.android.apps.maps#Intent;scheme=market;category=android.intent.category.BROWSABLE;launchFlags=0x3000000;end

ACTION: android.intent.action.VIEW
DATA: market://search?q=pname:com.google.android.apps.maps
URI: intent://search?q=pname:com.google.android.apps.maps#Intent;scheme=market;category=android.intent.category.BROWSABLE;launchFlags=0x3000000;end
CATEGORY:
android.intent.category.BROWSABLE
FLAGS:
FLAG_ACTIVITY_FORWARD_RESULT
FLAG_ACTIVITY_PREVIOUS_IS_TOP


AUFRUFBARE ACTIVITIES
Play Store (com.android.vending - com.google.android.finsky.activities.MainActivity)
Yalp Store (com.github.yeriomin.yalpstore - com.github.yeriomin.yalpstore.SearchActivity)
F-Droid (org.fdroid.fdroid - org.fdroid.fdroid.views.main.MainActivity)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
map symbol:

intent://search?q=pname:com.google.android.apps.maps#Intent;scheme=market;category=android.intent.category.BROWSABLE;launchFlags=0x3000000;end

ACTION: android.intent.action.VIEW
DATA: market://search?q=pname:com.google.android.apps.maps
URI: intent://search?q=pname:com.google.android.apps.maps#Intent;scheme=market;category=android.intent.category.BROWSABLE;launchFlags=0x3000000;end
CATEGORY:
android.intent.category.BROWSABLE
FLAGS:
FLAG_ACTIVITY_FORWARD_RESULT
FLAG_ACTIVITY_PREVIOUS_IS_TOP


AUFRUFBARE ACTIVITIES
Play Store (com.android.vending - com.google.android.finsky.activities.MainActivity)
Yalp Store (com.github.yeriomin.yalpstore - com.github.yeriomin.yalpstore.SearchActivity)
F-Droid (org.fdroid.fdroid - org.fdroid.fdroid.views.main.MainActivity)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

These results are looking a little nonsensy. Do not really contain useable contents.

@herrdeh
Copy link
Author

herrdeh commented May 23, 2018

This is the intent when I hit the "location'" symbol from my calendar app. When using the calendar, I get a pop up list with all my navigator and location apps to choose from.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

calendar:

intent://search?q=pname:com.google.android.apps.maps#Intent;scheme=market;category=android.intent.category.BROWSABLE;launchFlags=0x3000000;end

ACTION: android.intent.action.VIEW
DATA: market://search?q=pname:com.google.android.apps.maps
URI: intent://search?q=pname:com.google.android.apps.maps#Intent;scheme=market;category=android.intent.category.BROWSABLE;launchFlags=0x3000000;end
CATEGORY:
android.intent.category.BROWSABLE
FLAGS:
FLAG_ACTIVITY_FORWARD_RESULT
FLAG_ACTIVITY_PREVIOUS_IS_TOP


AUFRUFBARE ACTIVITIES
Play Store (com.android.vending - com.google.android.finsky.activities.MainActivity)
Yalp Store (com.github.yeriomin.yalpstore - com.github.yeriomin.yalpstore.SearchActivity)
F-Droid (org.fdroid.fdroid - org.fdroid.fdroid.views.main.MainActivity)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

@herrdeh
Copy link
Author

herrdeh commented May 23, 2018

To me as a layman the question is why browsers do not forward proper information to the system.

@ildar
Copy link

ildar commented May 23, 2018 via email

@herrdeh
Copy link
Author

herrdeh commented May 23, 2018

2nd. The initial question was about opening links, not feeding it into some app. That's a good approach, first make simple cases work.

Sorry, what exactly do you mean by this?

@herrdeh
Copy link
Author

herrdeh commented May 23, 2018

I tried bing search engine with opera mini. The "route planner" link forwards to google maps in the browser, the "location" link does not do anything.

Well. Always difficult to know what the average user would expect - I'd like to be prompted with a list of my navigation apps installed, when my browser shows any location or navigation link.

@ildar
Copy link

ildar commented Sep 5, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants