Results 1 to 3 of 3

Thread: NSURLErrorDomain -999

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    36
    Vote Rating
    0
      0  

    Default NSURLErrorDomain -999

    I created a very thin iOS wrapper (just renders a webview) to distribute my app as native however I'm running into an issue navigating to a page using iframe. Container.config.html =
    Code:
    <iframe src="https://myapp.com" width="100%" height="100%"></iframe>
    . The error I get is
    Code:
    (NSError *) $0 = 0x0d4f4f80 Error Domain=NSURLErrorDomain Code=-999 "The operation couldnt be completed. (NSURLErrorDomain error -999.)" UserInfo=0xd4f5dd0 {NSErrorFailingURLKey=https://myapp.com, NSErrorFailingURLStringKey=https://myapp.com}
    . The site works fine navigating straight from the mobile Safari browser.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    -999 means it was canceled probably due to the url not being whitelisted. <iframe> on a mobile device is not recommended in an ST2 app.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    36
    Vote Rating
    0
      0  

    Default

    Looks like the -999 issue was due to the fact that i had a default html iframe url in the container and was updating it with a new one. One thing that may be worth investigating, or not given that iframes aren't officially supported, is that they behave differently on the iPad 1, especially when using web clips. On the iPad 2 and iPhones the title bar in the container is visible however on the iPad 1 the iframe takes over the entire screen and am not able to access the back button on my title bar. I have since just opened the iframe in a separate tab.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •