Ionic/Cordova app dev questions

29 views
Skip to first unread message

Brian Gilbert

unread,
Mar 22, 2016, 4:39:11 PM3/22/16
to Connected Community HackerSpace
Hi All

A few months ago someone helped me out getting my laptop set up for using Cordova, he mentioned that he uses Ionic himself for app dev.

I've started playing with Ionic myself and was wondering if anyone in the group could help me with a few problems I've hit:

In a tab based project one of my tabs loads an iframe pointing to an external site, I'd like to make any links clicked within this iframe that are not to the originating site to open in the system browser instead of the iframe.

So far I have tried to do this by adding the following attribute to the iframe:
 sandbox="allow-same-origin allow-scripts allow-popups allow-forms"

This works when testing the app with serve --lab, but in simulator the links get opened directly (replacing my tab view).

I've also investigated the inappbrowser cordova plugin but it takes over the whole ux of the app, is there a way to leave my tabs still visible?

Another problem I'd like to address is if I click off the tab showing the iframe I'd like the iframe to reload the set url when it is clicked again.

And finally if the app is minimised I would like it to refresh back to the first tab when restored.

Cheers
Brian
Reply all
Reply to author
Forward
0 new messages