I am using two plugins (cordova-plugin-auth-dialog & cordova-inappbrowser) to realize the login process for my cordova ios app.
The login itself is working really fine on the iPhone, but on the iPad it is causing a long UI freeze (CPU usage at 99% for about 1minute). It must be caused by the login, since the app is working whenever you are logged in.
In Xcode I can see also the famous
THREAD WARNING: ['InAppBrowser'] took '52.126953' ms. Plugin should use a background thread.
warning. Is this really significant ?
I am using the latest version of cordova and the version 4.1.0 of the ios platform.
Do you guys have any tips for me ? I also would really like to have some approaches to debug the issue with some external tools (Safari Debugger, does not really have any useful information for me there).
Thanks in advance !
EDIT : Added Code
authDialog.authenticate(URL_TO_LOGIN, function () {
console.log("success");
var inAppBrowserRef = cordova.InAppBrowser.open(URL_TO_LOGIN, '_blank', 'location=yes,hidden=yes');
inAppBrowserRef.addEventListener('loadstart', loadStartCallBack);
inAppBrowserRef.addEventListener('loadstop', loadStopCallBack);
inAppBrowserRef.addEventListener('loaderror', loadErrorCallBack);
defer.resolve();
}, function (error) {
console.log("error xxx:", error);
defer.resolve();
}, username, password);