cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kerri Shotts (JIRA)" <>
Subject [jira] [Commented] (CB-12654) Cordova release build blocks ajax requests
Date Fri, 14 Apr 2017 14:15:41 GMT


Kerri Shotts commented on CB-12654:

Make absolutely certain that your SSL is properly configured on your backend. You can use
an online testing tool like to verify your server's setup.

Also, check the output of {{adb logcat}} around the time of the failure and see if there's
anything in there regarding network issues. If there is, please post here.

> Cordova release build blocks ajax requests
> ------------------------------------------
>                 Key: CB-12654
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>         Environment: cordova-android@4.1.1 , Android Version 7.1.1, Nexus 5X
>            Reporter: Chandra Sekhar Walajapet Sureshbabu
> Android Cordova Debug Build works fine on Nexus 5X, 7.1.1 , However it fails to make
any ajax requests on Release(Signed) Build.
> Tried communicating from native code using a plugin, the connection is successful
> The issue occurs only in Nexus 5X, 7.1.1 and doesn't happen on other devices.
> Permissions:
> <uses-permission android:name="android.permission.INTERNET" />
> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
> Whitelist plugin in config.xml:
> <feature name="Whitelist">
>         <param name="android-package" value="org.apache.cordova.whitelist.WhitelistPlugin"
>         <param name="onload" value="true" />
>     </feature>
> Even tested with logs in
> Returns true when asked for shouldAllow
> CSP:
> <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; connect-src">
> Please note the CSP works for all Android, iOS devices except for Nexus 5X 7.1.1, i even
tried removing connect-src, but same result.
> Did anyone come across similar issue ?

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message