Cordova open app links within the app

Asked

Viewed 313 times

1

I have a responsive site, I created an app with Cordova running from this site, but when I click the links, it’s playing out the app, in the mobile browser. I want it to run inside the app, someone has been through this?

2 answers

1

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

So, if you opened a modal that occupies the entire screen for example, and had an iframe with your content, you would still be in the "same tab".

0

I was able to solve just by taking the final URL bar in content src of config.xml, as dumb as it may be, it solved my problem.

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

hugs

Browser other questions tagged

You are not signed in. Login or sign up in order to post.