I have developed an application by using Cordova 9.0.0 and it's in production for more than years. Recently a few days back I upgraded my Cordova version from 9.x to 10.x. After the upgrade, Http and Https (REST API) calls are not working in the release build.
Although the API calls are working fine in android debug build, tested on real android device (Realme 3 pro) and in chrome browser.
Since the issue has occurred in the release build I am unable to produce any error log.
I am using AJAX to make API calls.
Note: All REST APIs are Https hosted.
AJAX Call
$.ajax({
type: "POST",
url: "https://example.com/methodName",
data: {
data: mYData
},
contentType: 'application/x-www-form-urlencoded',
timeout: 30000,
success: function (data) {},
error: function (message, textStatus) {}
Related Queries:
- Http and Https calls not working after Cordova upgrade
- My release apk crash immediately but the debug app work properly ionic 5
EDIT:
Below error response is log on API call.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…