mardi 8 avril 2014

Sencha Cordova InAppBrowser not working as expected

Hi there,

Since the iframe inclusion doesn't work well with iOS (no scroll, bouncing the container...), I've tried to implement the cordova InAppBrowser.

So far I know how to include plugins and build a sencha cordova project. Device ready works fine, but when it comes to InAppBrowser the

Code:



window.open(url, '_blank', 'location=yes')


seems to use the default js method, tried

Code:



Cordova.exec(window.open())


to make sure cordova is handling, but still running default js and opening the cordova browser that I cannot add events or even show alerts on it.

I've tried even this, knowing how cordova execute methods:


Code:



Cordova.exec(successFunction, failFunction, "InAppBrowser", "open", [url, '_blank','location=yes']);


It does open the InAppBrowser, but none of the listeners, given at the Official Cordova website, could be added. such as: loadstart, loadstop, exit or alerts could be shown.

Any help is really appreciated.




Aucun commentaire:

Enregistrer un commentaire