plateaukao / einkbro

A small, fast web browser based on Android WebView. It's tailored for E-Ink devices but also works great on normal android devices.
Other
1.05k stars 77 forks source link

Send Intent URL Normalization #370

Open Jacek-Gawel opened 2 months ago

Jacek-Gawel commented 2 months ago

In cases where the URL sent in the intent contained spaces, the application did not open the given URL but instead used it as a search query in Google.

By normalizing the URL, the text from the intent is now correctly opened as a URL.

This issue is known to occur with Firebase App Distribution, which sends the app name in the intent. If the app name contains spaces, the link is not opened but is treated as a search query.

Replace Intent ExtraText spaces with %20

plateaukao commented 2 months ago

Thank you for providing the PR. I'll check whether it will make other scenarios malfunctioning; if not, I'll merge it.

plateaukao commented 2 months ago

Hi, @Jacek-Gawel could you provide me several example of Firebase App Distribution usage? I would like to verify the scenarios. Also, could you fix indent issues in the PR? Otherwise I may just send a commit directly based on your PR, in order not to send another PR to fix those indentations.