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

[Feature Request] Enable ADB-Like Direct URL Opening in App Functionality for openLink #1397

Closed
langtind opened this issue Aug 29, 2023 · 3 comments · Fixed by #1999
Closed
Labels
enhancement New feature request or improvement of an existing feature

Comments

@langtind
Copy link

With ADB, it's possible to open URLs directly with the app, even when the URLs are not verified.

adb shell am start -a android.intent.action.VIEW -d "https://www.company.com/invitation/c77ca9d0-5ff7-4b59-8d1b-4802b054e9cd" com.company.android.maestro.debug

This request is to extend the functionality of openLink to replicate this behavior.

Describe the solution you'd like

Add a property (e.g., openWithViewIntent) to openLink that allows opening the URL in the same way as ADB does:

-  openLink:
    link: https://www.company.com/invitation/c77ca9d0-5ff7-4b59-8d1b-4802b054e9cd
    autoVerify: true
    openWithViewIntent: true

Describe alternatives you've considered

An alternative solution currently is to add steps in your flow to add the URLs to the "Open by default" list. However, this approach increases the runtime of the flow and may be more fragile.

# Adding company.com and www.company.com as supported links on Android
-  runFlow:
    when:
      platform: Android
    commands:
      - launchApp: "com.android.settings"
      - tapOn: "Apps"
      - tapOn: "All apps"
      - scrollUntilVisible:
          element:
            text: "App Name"
      - tapOn: "App Name"
      - scrollUntilVisible:
          element:
            text: "Open by default"
      - tapOn: "Open by default"
      - tapOn: "Add link"
      - tapOn: "company.com"
      - tapOn: "www.company.com"
      - tapOn: "Add"

-  openLink:
    link: https://www.company.com/invitation/c77ca9d0-5ff7-4b59-8d1b-4802b054e9cd
    autoVerify: true

Additional context

Discussion on Slack: Slack Discussion

@langtind langtind added the enhancement New feature request or improvement of an existing feature label Aug 29, 2023
@Dambakk
Copy link

Dambakk commented Aug 29, 2023

I guess this also could be generalised to open any activity directly as well! That would be useful!

@chmiiller
Copy link

That would be extremely useful so I can properly test Deep Linking to my app. BTW, thanks @langtind for your suggestion of opening the Settings app and clicking on "Open by default". In my case, instead of tapping on "All apps" I searched for my App inside the settings' app search

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue.
Thank you for helping keep us our issue tracker clean!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature request or improvement of an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants