Skip to content

feat(appium): improve deeplink handling with Android ADB fallback and…#262

Open
sheshnath1st wants to merge 3 commits intomozarkai:mainfrom
sheshnath1st:main
Open

feat(appium): improve deeplink handling with Android ADB fallback and…#262
sheshnath1st wants to merge 3 commits intomozarkai:mainfrom
sheshnath1st:main

Conversation

@sheshnath1st
Copy link
Copy Markdown

… iOS Safari support

Copilot AI review requested due to automatic review settings March 6, 2026 16:04
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances deep link launching in the Appium driver by improving URL detection, normalizing platform handling, adding an Android ADB fallback path, and switching iOS deep link launching toward mobile: openUrl with a Safari fallback.

Changes:

  • Tighten deep link detection by stripping whitespace before checking for ://.
  • Normalize platformName to lowercase and expand Android deep link handling to include package plus an ADB fallback.
  • Update iOS deep link launching to use mobile: openUrl with a Safari fallback attempt.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Mar 9, 2026


driver.get(deeplink)
except Exception as exc:
internal_logger.debug(f"mobile:openUrl failed: {exc}")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this a debug log

if package:
payload["package"] = package
driver.execute_script("mobile: deepLink", payload)
internal_logger.debug(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be added to the end of the function, like in ios deep link implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants