window.open does not work on icenium build although it works on a cordova build

7 posts, 0 answers
  1. Vishal
    Vishal avatar
    3 posts
    Member since:
    Jan 2013

    Posted 18 Mar 2013 Link to this post

    I have javascript code in my app
    window.open("1.pdf", "_blank", "location=no");
    This is working fine when I do a traditional cordova build.
    But when I use the same fileset for icenium builds, nothing happens on window.open. Could not even see any errors being logged.
    Is there a reason why window.open should not work  on icenium. From what I can guess, it should not require a plugin or anything.
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 19 Mar 2013 Link to this post

    Hello Vishal,

    What is the device that you're trying this on - Android or iOS? You can check this post for more information and you could try this sample that shows how to open pdf file using childBrowser plug-in.

    Note that today we've released Icenium v1.3 where we introduced Cordova v2.4 support and therefore you should be able to use InAppBrowser directly, instead of the childBrowser plug-in.

    Review the referenced forum and give the sample a go and let us know how it goes.

    All the best,
    Steve
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Pluralsight.
  3. Vishal
    Vishal avatar
    3 posts
    Member since:
    Jan 2013

    Posted 19 Mar 2013 Link to this post

    Hi Steve,
    Thank you for your response.
    I am doing my testing for IPAD.
    I am using InAppBrowser in effect (by using window.open).
    I have downloaded the Icenium v1.3 now.
    Now the window.open does work on my desktop simulator.
    It doesn't work on my Icenium Ion app.
    I am facing some problems with a provisioning, so I haven't been able to physically connect a device and test.
    But in the meantime, would you know why the inappbrowser won't work if I run my app through the Icenium Ion?
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 20 Mar 2013 Link to this post

    Hello Vishal,

    InAppBrowser works correctly on iOS when deployed through Icenium Ion. I've attached a sample project I've used for the testing, you can use the "Add from Archive" option to test it on your end.

    Greetings,
    Steve
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Pluralsight.
  5. Vishal
    Vishal avatar
    3 posts
    Member since:
    Jan 2013

    Posted 20 Mar 2013 Link to this post

    Thanks so much Steve for sending a sample app. I retested that after downloading a new version of Icenium Ion and it worked. Then I checked back my application and it worked too.

    Was it a bad version of Icenium Ion. Did I mess up somewhere earlier. I don't know.

    But I am happy to report there are no more issues. Thanks so much for navigating me through them. You are the best!
  6. David Gerding
    David Gerding avatar
    44 posts
    Member since:
    Sep 2005

    Posted 01 Apr 2013 Link to this post

    Hi,
    Sorry for the probably obvious question... but are you using the new Corova InAppBrowser module or just window.open?  I couldn't tell from the demo because the folder structure seems a bit different from standard phongap file folder structures.

    UPDATE: Was a dumb question - nevermind and thanks.

    Thanks,
    Dave G
  7. Jordan
    Admin
    Jordan avatar
    197 posts

    Posted 01 Apr 2013 Link to this post

    Hi David,

    Thank you both for trying out Icenium.

    As for your last question if you create a new project or change in Project Properties the Cordova version to 2.4 you will get new InAppBrowser functionality.

    Happy coding! 

    Greetings,
    Jordan
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Kendo UI Dojo.
Back to Top