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.

Safari not opening with supplied launch argument on real device iOS 12.2

See original GitHub issue

The problem

Environment

  • Appium version (or git revision) that exhibits the issue: 1.12.1
  • Last Appium version that did not exhibit the issue (if applicable):
  • Desktop OS/version used to run Appium: MacOS 10.14.4
  • Node.js version (unless using Appium.app|exe): v10.11.0
  • Npm or Yarn package manager: 6.9.0
  • Mobile platform/version under test: iOS 12.2
  • Real device or emulator/simulator: Real device
  • Appium CLI or Appium.app|exe: CLI

Details

Trying to launch safari app with launch arguments does not open the safari application on that url. Safari opens normally.

This worked on device running with 12.1. After updating this no longer works on same device. I also tried on another 12.1 device and works fine (opens safari to the url specified in launch arg).

Link to Appium logs

https://gist.github.com/biwkf/ae3fea3205dd841cbfbe30d6b70d6007

Code To Reproduce Issue [ Good To Have ]

`List args = new ArrayList(); args.add(“-u”); args.add(“www.github.com”);

    Map<String, Object> params = new HashMap<>();
    params.put("bundleId", "com.apple.mobilesafari");
    params.put("arguments", args);

    driver.executeScript("mobile: launchApp", params);`

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
ChiChoucommented, Jul 1, 2019

Apple has removed the support of this option since iOS 12.2 Please report the issue to their bug tracker

Not really. It has been renamed to: --U http://test.com

cc @biwkf @techno129

2reactions
imurchiecommented, Jul 1, 2019

Does that option work for you? In my experience it sets the URL and then the page goes back to what it was, with nothing in the history, as if it never happened.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dosen't work correctly Safari Web Debugger in iOS 12.2 devices
I tried connect Safari Web Inspector to Safari on iOS devices(iOS 12.2.). But Nothng display any data. However It's works correctly iOS Devices...
Read more >
How to launch Safari and open URL from iOS app
(Keep in mind you'll probably want to check -canOpenURL: first, just in case the URL can't be handled by apps currently installed on...
Read more >
Test Configuration Options - Sauce Labs Documentation
For iOS, the value needs to be "Safari" . ... If this capability is not provided for a real device session and also...
Read more >
Firebase Apple SDK Release Notes - Google
Added notification support for iOS 16 simulators on Xcode 14. ... Remote Config. Fixed cached config not loading if device is locked (#8807)....
Read more >
Navigator.share() - Web APIs - MDN Web Docs
The navigator.share() method of the Web Share API invokes the native sharing mechanism of the device to share data such as text, URLs, ......
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