InAppBrowser Events Not Firing

6 posts, 0 answers
  1. Tom
    Tom avatar
    16 posts
    Member since:
    Jan 2013

    Posted 29 May 2013 Link to this post

    Hey,

    Would you have any idea why the InAppBrowser events are not firing.  I tried the sample app (https://github.com/Icenium/sample-in-app-browser.git) and in my own.  I get the browser to pop up but events don't seem to fire.  Note I'm working in the Graphite Simulator.

    From the InAppBrowser documentation at http://cordova.apache.org/docs/en/2.4.0/cordova_inappbrowser_inappbrowser.md.html
    var ref = window.open('http://apache.org', '_blank', 'location=yes');
    ref.addEventListener('loadstart', function() { alert('start: ' + event.url); });
    ref.addEventListener('loadstop', function() { alert('stop: ' + event.url); });
    ref.addEventListener('exit', function() { alert(event.type); }); Are you able to see the alerts? I may be a block head but I don't see how the loadstart would ever fire since it could have already fired before it is hooked up. I assume I'm missing something as this is straight from the docs. Thanks for the help, Tom
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 30 May 2013 Link to this post

    Hello Tom,

    In the current version of Icenium InAppBrowser is not supported in the simulator and you should run it on an actual device in order to see it in action. We're already working on adding its functionality to our simulator for the next version of the product.

    Regards,
    Steve
    Telerik

    Don't miss the Icenium May Release Keynote - sign up now!
    Share feedback and vote for features on our Feedback Portal.
  3. Tom
    Tom avatar
    16 posts
    Member since:
    Jan 2013

    Posted 30 May 2013 Link to this post

    Thanks for the update Steve.  Couple Things:

    1) I may be doing something wrong, but the events don't fire in Ion either as far as I can tell.  I don't see the alert.
    2) I discovered InAppBrowser from a post that said it did work including a video http://www.icenium.com/resources/forums/icenium-general-discussion/childbrowser-plug-in-how-to-use-it-#sJO-mpnKoEyZRuFE8B1kwQ  (In fairness the video did not show the events though)
    3) If it is not supported in the Simulator, it would be really really appreciated if the demo apps could say that it is not supported in the simulator.  I'm wasting time trying to figure out if it is my issue, Iceniums, or the plugin itself.  I hope you understand.

    Any ETA on when the next release with InAppBrowser will be available and working?

    Thanks again, you guys are great!
    Tom
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 31 May 2013 Link to this post

    Hi Tom,

    The problem is that the javacript from the Cordova documentation for v.2.4 is wrong, you can see the correct javascript should you open the documentation for Cordova v.2.6 (use the dropdownlist from the top right corner). The problem is that the function is missing the argument that is used in the alert and obviously iOS decided not to execute this broken js. Should you add the event argument, it would fire as expected.

    Cordova plug-ins are not supported in the simulator and they would never be. We would add a warning to the simulator whenever an user is trying to utilize a plug-in, to avoid confusion and of course not to waste anyone's time.

    We appreciate your feedback, do let us know if you notice something else!

    Regards,
    Steve
    Telerik

    Don't miss the Icenium May Release Keynote - sign up now!
    Share feedback and vote for features on our Feedback Portal.
  5. Venkat
    Venkat avatar
    2 posts
    Member since:
    Jan 2014

    Posted 21 Mar 2014 Link to this post

    This still seems to be an outstanding issue - events not firing in Simulator.
    Can somebody please confirm?
    After a few hours of trying different things, i discovered this post. 
  6. Venkat
    Venkat avatar
    2 posts
    Member since:
    Jan 2014

    Posted 21 Mar 2014 in reply to Venkat Link to this post

    Just a quick feedback.. Seems to be working fine now
Back to Top