Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10745

InAppBrowser application on iOS 9.2 / iPad 3 only

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • None
    • None
    • None
    • iOS 9.2, iPad 3

    Description

      I'm starting to receive crash reports about users using an iPad 3 using iOS 9.2. When I look into the crash reports I'm seeing the following in " CDVInAppBrowser.m"

      • (void)viewDidUnload
        {
        [self.webView loadHTMLString:nil baseURL:nil];
        [CDVUserAgentUtil releaseLock:&_userAgentLockToken];
        [super viewDidUnload];
        }

      XCode is saying that "loadHTMLString" "Null passed to a callee that requires a non-null argument."

      And in the iOS documentation https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIWebView_Class/#//apple_ref/occ/instm/UIWebView/loadHTMLString:baseURL:

      I'm not sure why this only occurs for one specific user on iPad 3 and I can't seem to reproduce the problem in the simulator.

      Question 1: How to fix?
      Question 2: According to the user the crash happens immidiately when starting my cordova app before a button is pressed to open the inAppBrowser. When does viewDidUnload get called? I have no experience with objective C. I'm making a wild guess this is garbage collection for iOS.

      Attachments

        Activity

          People

            jcesarmobile jcesarmobile
            PerfectionCSGO Davide
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: