Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26443] iOS: App crashing while playing Youtube Video in WebView

GitHub Issuen/a
TypeBug
PriorityCritical
StatusResolved
ResolutionNot Our Bug
Resolution Date2018-11-27T06:53:22.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
LabelsWebView, applebug
Reportershumne
AssigneeVijay Singh
Created2018-10-03T12:38:44.000+0000
Updated2018-11-27T06:53:22.000+0000

Description

App is crashing when working with youtube videos. Please check out the video attached. index.xml Index.js $.index.open();

Attachments

FileDateSize
TestWebViewApp.zip2018-10-04T10:04:32.000+000064196
videoIssue.mov2018-10-03T12:38:19.000+00007879882
Videotest.mov2018-10-03T22:44:24.000+00009193262

Comments

  1. Sharif AbuDarda 2018-10-03

    Hello, I tested your sample code in a sample app. There isn't an issue in my test, The video plays fine. Changing video works fine too. See my video "Videotest.mov". Thanks.
  2. shumne 2018-10-04

    Hey Can you please test this on iOS 12? With the above configuration? It is not crashing on any version of iOS 11. As I can see you are running it on iOS 11.2!
  3. shumne 2018-10-04

    Even APM is also reporting this crashing issue on the Appcelerator Performance dashboard only for iOS 12.
  4. Vijay Singh 2018-10-04

    This issue is happening on native iOS as well. I have attached a native iOS app 'TestWebViewApp.zip'. If you run this app on iOS12 and play video, it will crash. This is bug from Apple side. I will file bug to apple for same.
  5. shumne 2018-10-04

    Is there any workaround to resolve this issue? Or do we have to wait for Apple to release another version of iOS/Xcode for this fix? Can you please also share the details of the bug you guys are filing to Apple.
  6. Sharif AbuDarda 2018-10-04

    Hello [~shumne], Since it's a native bug from Apple side. We have to wait for support from them. There isn't a workaround besides letting them know about it for faster response. We will let you know if we hardback from them. Thanks.
  7. Vijay Singh 2018-10-05

    [~shumne] You can try to use [Ti.WKWebview](https://github.com/appcelerator-modules/Ti.WKWebView/releases) module which uses WebKit framework if it suits to you. I believe this issue should not be there. Thanks!
  8. shumne 2018-10-08

    Hi Vijay, I have tried the Ti.WKWebview but it is causing the crashing issue on launch. I have tried that example given on the GitHub repo. Can you please let help us to get the working code for that module? Thanks Snehal.
  9. Vijay Singh 2018-10-08

    [~shumne] Which version of Ti.WKWebView? I tried with 2.8.3 and it is working fine. I believe you are using code mentioned inside example/app.js.
  10. shumne 2018-10-08

    Hi Vijay, Yes it is the same version with the same code. I am running on iOS 12. Please find the link of the video. [https://drive.google.com/file/d/1t46apf2isfIKYWXZz_wKJVOsy3R8KcA9/view](https://drive.google.com/file/d/1t46apf2isfIKYWXZz_wKJVOsy3R8KcA9/view) Please let me know if I am missing anything. Just FYI If I remove the wkwebview related code it is working fine. Thanks, Snehal.
  11. shumne 2018-10-08

    Oh wait, Hans publishes the new version, I thought it was same. Let me check on that
  12. Rakhi Mitro 2018-11-27

    [~shumne], Did you manage to check on your end? Let us know the current status of your issue and if you need any further help. Thanks

JSON Source