question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to set URL in native context on iOS real device

See original GitHub issue

The problem

Attempting to open a deep link from a native app context on a real device, per 1.6.5 release notes.

Allow setting url in native context, for opening deep links.

When i call driver.get(deeplink), simctl returns an error saying my UDID is an invalid device. Seems it’s assuming my target device is a simulator.

Environment

  • Appium version (or git revision) that exhibits the issue: 1.6.6-beta.4
  • Last Appium version that did not exhibit the issue (if applicable): N/A
  • Desktop OS/version used to run Appium: Mac Sierra
  • Node.js version (unless using Appium.app|exe): 8.4.0
  • Mobile platform/version under test: iOS 10.3.3
  • Real device or emulator/simulator: real device
  • Appium CLI or Appium.app|exe: CLI

Link to Appium logs

I changed deeplink and udid. They are both valid, just removed them for privacy. https://gist.github.com/jamesvanhorn/a43f9865a688077be1f0affe17b08a2a

Code To Reproduce Issue [ Good To Have ]

driver.get(“some deeplink”);

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:34 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
imurchiecommented, Aug 22, 2017

Yes, currently this only supports simulators. Not sure how to do this on real devices, but I’ll add it to our backlog.

0reactions
giangthaocommented, Jan 10, 2022

HI everyone, i’m testing deeplink. when i use ADB terminal to test, the app don’t need login. But when i testing deeplink with code in automation with appium. The app request login. How can i resolve it HashMap<String, String> deepUrl = new HashMap<>(); deepUrl.put(“url”, url); deepUrl.put(“package”, “com.fishidy.debug”); driver.executeScript(“mobile: deepLink”, deepUrl);

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allowing apps and websites to link to your content
In this example code, an app calls your universal link in iOS and tvOS: if let appURL = URL(string: "https://myphotoapp.example.com/albums?albumname=vacation& ...
Read more >
Can't run React Native App on iOS with error No bundle URL ...
With iPhone connected over USB, go to System Preferences->Network, find your device and untick "Disable unless needed" then press apply.
Read more >
SafeAreaContext - Expo Documentation
This allows you to position your content appropriately around notches, status bars, home indicators, and other such device and operating system interface ...
Read more >
Integration with Existing Apps - React Native
The keys to integrating React Native components into your Android application are to: Set up React Native dependencies and directory structure.
Read more >
Hybrid app returning context as NativeApp instead of Webview
iOS hybrid application has Web view, but returning the context as ... on link in Native , Device gets disconnected and Set Context...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found