This is a migrated thread and some comments may be shown as answers.

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

6 Answers 55 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vishal
Top achievements
Rank 1
Vishal asked on 18 Mar 2013, 09:53 PM
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.

6 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 19 Mar 2013, 03:25 PM
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.
0
Vishal
Top achievements
Rank 1
answered on 19 Mar 2013, 09:01 PM
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?
0
Steve
Telerik team
answered on 20 Mar 2013, 04:09 PM
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.
0
Vishal
Top achievements
Rank 1
answered on 20 Mar 2013, 06:59 PM
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!
0
David Gerding
Top achievements
Rank 1
answered on 01 Apr 2013, 11:31 PM
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
0
Jordan
Telerik team
answered on 02 Apr 2013, 04:27 AM
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.
Tags
Report a bug
Asked by
Vishal
Top achievements
Rank 1
Answers by
Steve
Telerik team
Vishal
Top achievements
Rank 1
David Gerding
Top achievements
Rank 1
Jordan
Telerik team
Share this question
or