Search code examples
eventscordovainappbrowser

Phonegap inappbroswer events w'ont fire


i am using phonegap latest version (3.4.0) and i am trying to implement google aOuth login. i have added the InAppbroswer plugin to my project, and tryed to use the object events (loadstart,loadstop,loaderor,exit) but is seems that they just dont fire.

my code is very simple, it looks like this:

ref  = window.open('http://apache.org', '_blank', 'location=yes');
ref.addEventListener('loadstart', function() { alert('start' ); });

i am running the app on Ripple eulator

i have looked for solution all over the web and have'nt fine one. so my question is if anybody know of a working sulotion for this?

Thanks for All.

UPDATE . i have tryed inappbroswer plugin on a fresh new Phonegap app i created just for testing this, and the plugin doesn't work! my phone gap version is 3.4.0-0.19.7 and the inappbroswer version is the latest. i installed the plugin via the CLI with the command cordova plugin add org.apache.cordova.inappbrowser

Also i have tryred to run this on normal android emulator and nothing good so far..

the plugin docs is right there


Solution

  • This is not an answer to your question but rather an alternative easy solution, Its easy to use and you don't need to go about listening to browser events. https://github.com/oauth-io/oauth-phonegap