No internet connection in mobile apps (iOS and Android)

4 posts, 0 answers
  1. Neal
    Neal avatar
    2 posts
    Member since:
    Oct 2015

    Posted 03 Dec 2015 Link to this post

    Hi all,

    Yesterday, I was automatically upgraded to the new in browser AppBuilder. I had to migrate each project to the new system. After this migration, all my apps have no network connection when testing on the mobile device (Android and iOS9.1). For example, the app cannot reference jQuery mobile/jQuery link and cannot make post/get calls via Ajax. Please note that everything works fine in the AppBuilder Simulator.  Prior to yesterday, everything worked fine and I even published these apps to a private store. It seems like a configuration file has changed during this migration. I found 2 posts that seem related; however, none of the proposed solutions work. 

    http://www.telerik.com/forums/apps-not-connection-to-external-links

    http://www.telerik.com/forums/android-app-will-not-post-via-ajax

    Please advise.

     Thanks,

    Neal

  2. Neal
    Neal avatar
    2 posts
    Member since:
    Oct 2015

    Posted 03 Dec 2015 in reply to Neal Link to this post

    As an update, I installed the sample InAppBrowser example provided by Telerik. The open external page in InAppBrowser functionality does not work; however, the open in system browser does work. So there must be some setting in the app that needs to be adjusted that previously wasn't an issue. 
  3. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 07 Dec 2015 Link to this post

    Hello Neal,

    I can confirm a bug in the iOS companion app introduced with its latest release. iOS 9 introduced App Transport Security (ATS) to enforce best practices in the secure connections between an app and its back end. It requires all of your remote endpoints to be accessed securely with the HTTPS protocol.

    This is why if an app uses HTTP to communicate with its back end, the Info.plist of the app needs to explicitly allow that communication by including the following key:
    <key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
          <true/>
    </dict>

    The latest release of the iOS AppBuilder companion app doesn't include this key which is why it cannot load any external resources over HTTP. We already applied a fix and we submitted the app for review in Apple Store.

    However, I wasn't able to replicate the issue in the Android AppBuilder companion app. Can you please let me know the version of the Android running on your device and also let me know if you're using the latest version of the AppBuilder companion app.

    I also hope you'll accept my apology for the inconvenience caused by the iOS companion app update. I hope you'll be able to test your projects directly on an iOS device until the update is available.

    Regards,
    Tina Stancheva
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
  4. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 11 Dec 2015 Link to this post

    Hello Neal,

    The latest version of AppBuilder is now available in the AppStore. Would you please update it on your device and let us know if you're still having issues with your network requests.

    Regards,
    Tina Stancheva
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
Back to Top