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

Ion crashes while using WebIntent plugin

1 Answer 54 Views
AppBuilder companion app
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Candace
Top achievements
Rank 1
Candace asked on 30 Jul 2013, 08:32 PM
I'm using WebIntent (https://github.com/phonegap/phonegap-plugins/tree/master/Android/WebIntent/) as a custom plugin on my Icenium project.  

I am using the startActivity method to have the Android OS recommend an viewer for a file of a particular mime type.  

window.plugins.webintent.startActivity({ 
  url: fullpath, // this is a local file
  action: window.plugins.webintent.ACTION_VIEW,
  type: 'application/pdf'
},
function(args) {
  console.log('success!');
},
function(args) {
  console.log(JSON.stringify(args));
});

This is working correctly.  

However, if I set a type to 'application/someunsupportedmimetype', I am expecting an error to be reported because webIntent should not be able to find an appropriate viewer to recommend.  Instead, Icenium Ion closes on the device and no errors are outputted to the console within Icenium Graphite.  I have also attempted to wrap everything in a try/catch block - the same results occur.

Thoughts?

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 31 Jul 2013, 06:24 AM
Hi Candace,

There must be some confusion as Icenium Ion is a test utility for iOS devices and is not available for Android devices. Additionally Icenium Ion does not support custom plugins and you can only test those by deploying on an actual device with provision (iOS).
We've already tested the WebIntent plug-in locally and can confirm that it has worked in our basic tests, so if you experience the same problems when you deploy your app, you might consider trying on another device, or another type of intent, or you can contact the plugin author for more information on how to debug this yourself.

Regards,
Steve
Telerik

Do you enjoy Icenium? Vote for it as your favorite new product here (use short code H048S).
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
AppBuilder companion app
Asked by
Candace
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or