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.

[iOS 13 Beta] Unable to switch context to webview as /contexts call returns only native view when the app is on SafariViewController

See original GitHub issue

The problem

I am working on a hybrid app where I need to switch the context from Native view to WebView when the app opens up a SafariViewController, but for the /contexts call, I am getting this response. The issue is ONLY there for iOS 13 Beta devices. This is working FINE in iOS 12 devices

{ “status”: 0, “value”: [ “NATIVE_APP” ], “sessionId”: “980c3541-68ec-419e-9475-345c5547d5e7” }

Briefly describe the issue you are experiencing (or the feature you want to see added to Appium). Tell us what you were trying to do and what happened instead. Remember, this is not a place to ask questions. For that, go to http://discuss.appium.io!

Environment

  • Appium version (or git revision) that exhibits the issue: 1.14.0
  • Mobile platform/version under test: iOS 13 Beta. It ran fine with iOS 12.2 devices
  • Real device or emulator/simulator: Real Device

Details

If necessary, describe the problem you have been experiencing in more detail.

Link to Appium logs

Create a GIST which is a paste of your full Appium logs, and link them here. Do NOT paste your full Appium logs here, as it will make this issue very long and hard to read! If you are reporting a bug, always include Appium logs!

Code To Reproduce Issue [ Good To Have ]

Please remember that with sample code it’s easier to reproduce the bug and it’s much faster to fix it.

Please git clone https://github.com/appium/appium and from the sample-code directory, use one of your favourite languages and sample apps to reproduce the issue.

In case a similar scenario is missing in sample-code, please submit a PR with one of the sample apps provided.

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
imurchiecommented, Jul 30, 2019

This is most likely a problem with ios-webkit-debug-proxy. They are still working on iOS 13 support (see https://github.com/google/ios-webkit-debug-proxy/pull/317).

Soon you should be able to try our beta of support for real device webviews without using iwdp.

1reaction
imurchiecommented, Aug 1, 2019

You can try running the latest Appium beta (by running npm uninstall -g appium && npm install -g appium@beta). In this, ios-webkit-debug-proxy should not be necessary.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't switch context to webview - Issues/Bugs - Appium Discuss
In the inspector i see only “no context” and can't switch to a webview context ... Appium only show native app context, is...
Read more >
Safari Services | Apple Developer Forums
Unable to access web view & text fields in SFSafariViewController UI test with Xcode 11.3 ... Hi I have installed IOS 15 beta...
Read more >
PWAs on iOS 12.2 beta: the good, the bad, and the “not sure ...
While the Web and Web1 processes seem to disappear from memory when you get out of the app, the saved context is shared...
Read more >
8th Wall Documentation
8th Wall works within iOS 13 apps that use SFSafariViewController web views. ... Scan the QR code with your mobile device to view...
Read more >
flutter_inappwebview 5.1.0 | Flutter Package - Pub.dev
A Flutter plugin that allows you to add an inline webview, to use an headless webview, and to open an in-app browser window....
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