Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

URL Scheme / Deeplink testing from terminal Android

I would like to know how to test some deeplinks for my app. The functionality is already implemented in my app and it works just fine. They way I've been testing it so far was to create my HTML page and assign the URL Schemes to the buttons. I know for a fact that there's a way to test those from Terminal but I forgot what was the command / where should i call it from. Can someone help please?

like image 266
Durican Radu Avatar asked Oct 16 '25 17:10

Durican Radu


1 Answers

To use url scheme in a more efficient way, you can do it inside adb with this following command line:

adb shell 'am start "intent:#Intent;scheme=yourscheme://yoururl?param1=value1;end"'

Or you can even do it with QrCodes: Go to ZXing and generate a url of this format:

yourscheme://yoururl?param1=value1

Then scan it with a QrCode app like BarcodeScanner

like image 127
Simon Marquis Avatar answered Oct 18 '25 16:10

Simon Marquis