This is a migrated thread and some comments may be shown as answers.

No internet connection in mobile apps (iOS and Android)

3 Answers 353 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Neal
Top achievements
Rank 1
Neal asked on 03 Dec 2015, 02:18 PM

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

3 Answers, 1 is accepted

Sort by
0
Neal
Top achievements
Rank 1
answered on 03 Dec 2015, 02:49 PM
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. 
0
Tina Stancheva
Telerik team
answered on 07 Dec 2015, 11:59 AM
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.

 
0
Tina Stancheva
Telerik team
answered on 11 Dec 2015, 10:12 AM
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.

 
Tags
Report a bug
Asked by
Neal
Top achievements
Rank 1
Answers by
Neal
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or