appodeal / appodeal-cordova-plugin

Appodeal Cordova Plugin
https://www.appodeal.com
19 stars 33 forks source link

App Transport Security has blocked a cleartext HTTP with new cordova? #45

Open matrixreal opened 6 years ago

matrixreal commented 6 years ago

Hi, i did update my cordova plugin to the latest got this message with no ads App Transport Security has blocked a cleartext HTTP appodeal3

matrixreal commented 6 years ago

hi any news please ?

meeeeeepo commented 6 years ago

@matrixreal hello, have you tried cleaning the project and rebuilding it? And are you able to get ads?

meeeeeepo commented 6 years ago

And can you please provide a list of all plugins you are using?

matrixreal commented 6 years ago

ok just give me 5 minutes to do it but just to know when i back to v 3.0.0 everything work

matrixreal commented 6 years ago

@meeeeeepo i did try to clean the project and still same ... when i remove the plugin and back to v3.0.0 it work here are list of plugins i use 👍 cc.fovea.cordova.purchase 7.0.2 "Purchase" com.appodeal.plugin 3.0.2 "Appodeal Plugin" cordova-plugin-compat 1.1.0 "Compat" cordova-plugin-device 1.1.6 "Device" cordova-plugin-dialogs 1.3.3 "Notification" cordova-plugin-facebook4 1.9.1 "Facebook Connect" cordova-plugin-file 4.3.3 "File" cordova-plugin-game-center 0.4.2 "Game Center" cordova-plugin-httpd 0.9.3 "CorHttpd" cordova-plugin-inappbrowser 1.7.1 "InAppBrowser" cordova-plugin-share-reviewapp 1.0.26 "Cordova ReviewApp plugin" cordova-plugin-statusbar 2.2.2-dev "StatusBar" cordova-plugin-whitelist 1.3.2 "Whitelist" cordova-plugin-wkwebview-engine 1.1.3 "Cordova WKWebView Engine" cordova-plugin-x-socialsharing 5.2.0 "SocialSharing" es6-promise-plugin 4.1.0 "Promise" onesignal-cordova-plugin 2.1.2 "OneSignal Push Notifications"

meeeeeepo commented 6 years ago

@matrixreal do you test on device or simulator? what xcode version do you use? what ios do you test with? I tried to reproduce with xcode 9 and iOS 10-11 but all was fine And can you share your project if it is possible? If it is not possible then can you try to reproduce it on demo project and share it?

matrixreal commented 6 years ago

@meeeeeepo i did try on simulator ios 10.3 (ipad and iphone) real device is iphone 5c ios 10.3.3 xcode 8.3.3 as i told you if i use appodeal plugin v 3.0.0 or earlier it works perfect

matrixreal commented 6 years ago

@meeeeeepo just switched to appodeal 3.0.0 and it work (but not with the new 3.0.2) appodeal4

meeeeeepo commented 6 years ago

@matrixreal so I guess that with 3.0.2 you can't get ads?

matrixreal commented 6 years ago

just to know here is the code that i use to initialise the sdk

function initialize() { var appKey = "bf4cf83e24be4aa009526e0a44de2409c821dabd0b24fa49"; Appodeal.setLogging(false); Appodeal.disableLocationPermissionCheck(); Appodeal.initialize(appKey, Appodeal.INTERSTITIAL | Appodeal.BANNER | Appodeal.REWARDED_VIDEO);

}

then later i call initialize();

@meeeeeepo yes it is 3.0.2 wich is not working

meeeeeepo commented 6 years ago

@matrixreal ok i will check more careful today and i hope i will give you a solution tomorrow

matrixreal commented 6 years ago

@meeeeeepo solved but this is strange i did solve the problem by removing the Appodeal.setLogging(false); call from initialising the sdk

matrixreal commented 6 years ago

@meeeeeepo but please why you did not update for example the admob sdk ? the version on the appodeal sdk is 7.19.1 and the latest on google ads is 7.24.0

meeeeeepo commented 6 years ago

@matrixreal hello again, Appodeal.setLogging(false); was removed from new cordova, i assume that was the problem About admob - as you can see here https://developers.google.com/admob/ios/rel-notes admob removed support of armv7s architecture from 7.20.0 and later versions, so we can't update it, because our SDK supports this architecture

matrixreal commented 6 years ago

OK THANK YOU how can i replace the Appodeal.setLogging(false); call in the new sdk ?

meeeeeepo commented 6 years ago

@matrixreal you can use Appodeal.setLogLevel(Appodeal.LogLevel.VERBOSE)(or DEBUG or NONE instead of verbose)

matrixreal commented 6 years ago

none is light false (disabled)?

meeeeeepo commented 6 years ago

@matrixreal yeah