Cordova open app links within the app

1

I have a responsive website, I created an app with cordova running from that site, but when I click the links, it is playing outside the app in the mobile browser. I want it to be running inside the app, has anyone ever had it?

    
asked by anonymous 30.04.2018 / 15:06

2 answers

1

I think the best solution for you would be to work with <iframe></iframe> . The cordova is nothing more than a browser that runs a local "site" and gives access to a number of functions of the mobile phone for it. If you try to "open" a new tab, it will not keep track of the app and you will have to force an opening in a browser (cordova has no tabs).

So, if you open a modal that occupies the entire screen for example, and it has an iframe with its content, you would still be on the same tab.

    
30.04.2018 / 16:37
0

I was able to solve just by taking the final url bar in the src content of config.xml, however idiotic it may be, this solved my problem.

Ex: www.seusite.com/ was not going www.yoursite.com worked.

Hugs

    
01.05.2018 / 23:54