Deep links

Obtener deep links.

  • AndroidManifest.xml: activities con intents que incluyen la categoría "browsable".

# Drozer
run scanner.activity.browsable -a <app-package-name>

# Mango
show deeplinks

Iniciar deep link.

# Android Debug Bridge (adb)
adb shell am start -W "schema://host/path?parameter=value"
adb shell am start -a android.intent.action.VIEW -d "schema://host/path?parameter=value"
adb shell am start -n <app-package-name>/.<activity-name> -d "schema://host/path?parameter=value"

# Drozer
run app.activity.start --action android.intent.action.VIEW --data-uri schema://host/path?parameter=value

# Mango
deeplink schema://host/path?parameter=value

Iniciar deep link desde página web.

index.html
<!DOCTYPE html>
<html lang="es">
    <head>
        <meta charset="utf-8" />
        <title>Deep link proof of concept</title>
    </head>
    <body>
        <h1><a href="schema://host/path">click here 1</a></h1>
        <h1><a href="intent://host/path#Intent;scheme=<scheme>;package=<app-package-name>;component=<activity-name>;end">click here 2</a></h1>        
    </body>
</html>

Última actualización