yume-chan / ya-webadb

ADB in your browser
https://tangoapp.dev/
MIT License
2.15k stars 290 forks source link

[Feature Request] Call Android browser, or any binded app, to open a URL #619

Open garywill opened 6 months ago

garywill commented 6 months ago

Pre-issue checklist

How can Tango be improved?

am start -a android.intent.action.VIEW -d http://xxxxxxx

will make Android open browser to open the url.

Or

am start -a android.intent.action.VIEW -d  other-scheme://xxxxxxx

will make it open the binded app for the scheme.

So please add adb shell am start -a android.intent.action.VIEW -d <user input url> as a feature on webui

How should the API change?

.

(Optional) Other information

No response

yume-chan commented 6 months ago

Sorry for the late response, I was in hospital last week.

So please add adb shell am start -a android.intent.action.VIEW -d <user input url> as a feature on webui

Please tell us why you need this feature so we can find a good place for it in the app.

In my understanding, starting a URL is useful for debugging protocol handlers in your apps. It's not related to any existing features in the Web app, so it might be added to the Advanced page?

Note: suggestions for the Web app should go to https://github.com/tango-adb/feedback/issues.

garywill commented 6 months ago

Please tell us why you need this feature

For example, my Android device has an app called "Bilibili" installed. It has registered itself as opener of url *://www.bilibili.com/*.

When I see a good video on https://www.bilibili.com/<videoid> on PC, I can quickly use that feature to open Bilibili app on Android and tell it to play that video.

Same apply to Youtube and other websites/apps.

Similarily, some apps like Telegram registers tg://xxxxx url


I was in hospital last week.

Keep healthy. You don't have to feel sorry to users. We technicians are workers who are in the same side

yume-chan commented 6 months ago

Sounds like it should be a share target. Except share target API is hard to use.