9

So far I have tried inappbrowser and iframes. Iframes work, but I have encountered a couple of app-breaking bugs in the implementation I am using with iframes. Is there a more native-like solution for displaying external web pages inside of phonegap while still maintaining your apps navigation, such as a header with a side scrolling menu?

Trevor Panhorst
  • 259
  • 4
  • 18
  • 1
    I think you can achieve it with https://github.com/Microsoft/ace – Breixo May 10 '16 at 01:04
  • Very interesting. I see that it also adds the ability to use widgets. Have you used this kit in a production app? Also have you integrated it with ionic at all? – Trevor Panhorst May 10 '16 at 14:34
  • 1
    @TrevorPanhorst can you have a look at this plugin - https://github.com/initialxy/cordova-plugin-themeablebrowser Also i suggest you to have a look at this link for more info on this - http://stackoverflow.com/questions/28433766/maintaining-header-when-opening-link-in-inappbrowser – Gandhi May 10 '16 at 15:06
  • @TrevorPanhorst I try to make some complex structures on Android and is a little bit buggy, but in your case to use only the webview element it could work. And I dont like ionic, i prefer to use Cordova alone. – Breixo May 10 '16 at 15:22
  • As @Gandhi said I had a similar situation as yours and we decided to give themablebrowser a try. It did work great for us. – jlreymendez May 11 '16 at 20:12
  • @TrevorPanhorst Did you tried out themablebrowser plugin? DId it help? – Gandhi May 13 '16 at 06:03

1 Answers1

1

I believe, the easiest approach is to go with cordova themablebrowser plugin which simplifies the implementation and helps in ease of development and maintenance. You can have a look at themablebroswer plugin link for more info. Hope it helps.

Gandhi
  • 11,875
  • 4
  • 39
  • 63
  • I believe you are right. This seems to be the best hope for achieving this functionality in Ionic 1. – Trevor Panhorst May 20 '16 at 19:12
  • This, unfortunately, was not the answer I was looking for, and the other guy's answer suggesting something outside of Ionic definitely was not what I was looking for. I went ahead and accept this answer because I feel as if there just isn't a perfect solution here and this is the closest. – Trevor Panhorst May 20 '16 at 19:14
  • @Trevor Thanks for the update and acceptance. Bit unfortunate to miss out on the bounty though :( happy coding. Cheers – Gandhi May 20 '16 at 19:42
  • Yeah apologies for the bounty. I guess I wasn't 100% on how that worked. After a time limit it gives it to the only answer? That guy put a non-related answer up just to get the bounty. Seems like a bad system. – Trevor Panhorst Jun 01 '16 at 14:08
  • @TrevorPanhorst Oh that sounds a flaw in system. Hope to get it sometime. Thanks for your time :( – Gandhi Jun 01 '16 at 14:13
  • @TrevorPanhorst Hope you set one more bouty sometime :) – Gandhi Jun 01 '16 at 14:17