Unable to set URL in native context on iOS real device
See original GitHub issueThe 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:
- Created 6 years ago
- Comments:34 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, currently this only supports simulators. Not sure how to do this on real devices, but I’ll add it to our backlog.
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);