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.

WebView no sound on iOS11

See original GitHub issue

If setting the src of WebView to ex. www.youtube.com, and then play a video, there is no sound on iOS11. iOS10 works fine.

Which platform(s) does your issue occur on?

iOS11 (haven’t tested on Android)

Please provide the following version numbers that your issue occurs with:

  • CLI: 3.21
  • Cross-platform modules: 3.2.0
  • Runtime(s): 3.2.0

Please tell us how to recreate the issue in as much detail as possible.

Create a new project, insert a WebView with src=“https://www.youtube.com”. And play a video on youtube.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

<Page class="page"
    navigatingTo="onNavigatingTo"  
    xmlns="http://www.nativescript.org/tns.xsd">

    <GridLayout rows="*">
        <WebView id="webView" src="https://www.youtube.com" />
    </GridLayout>
</Page>

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
gregersen79commented, Oct 12, 2017

This is a bit embarrassing, but just noticed the Ring/Silent button on the side of the iPhone was set to silent, after switching it on, I got sound on iOS11 (“unfortunately” all of our 3 iOS11 test devices where set to silent). @NickIliev could this also be the case in your end?

1reaction
NickIlievcommented, Oct 12, 2017

@gregersen79 I have created this test project and can confirm that indeed there is no sound on iOS11 real device. However, thеre is a sound when running on iOS 11 emulator and I have noticed that this issue is observed by native iOS developers (post here) so it might be related to native iOS 11 bug.

We will investigate further and post any related information in this thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Swift (latest) UIwebView no sound ? | Apple Developer Forums
When i load a local site in my webView, no sound is played. I use this code to play the sound in the...
Read more >
iOS 11 webview audioplayer in background - Stack Overflow
Since update on iOS 11 my audioplayer in a webview stops when the app is in background. On iOS 10 the player keeps...
Read more >
Unable to start WebRTC from Chrome Webview to IOS 11 ...
Issue 801501: Unable to start WebRTC from Chrome Webview to IOS 11, though it works from Chrome Browser · 1. In the device...
Read more >
Understanding the WebView Viewport in iOS 11 - Ayogo
This post helps you understand the Webview Viewport in iOS 11. Note: Existing apps will continue working as they always have with no...
Read more >
Summary - UniWebView
Whether the web view is supported in current runtime or not. ... Raised when a key (like back button or volume up) on...
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