after some googling and research on these forum I’m still stuck on a seemingly simple problem. I need to render a couple buttons inside a view, one of which will link to a file download (zip or pdf), and the other to an external website URL.
The desired behaviour would be for both to open inside the system default browser, leaving the app (but saving its current state for the user to come back afterwards).
I’ve started from scratch from the tabs template and added some hrefs in the friend details page (with file names and URLs added to the friend sample data in services.json). This code works when run on a browser with ionic serve, but running it on ios emulator or android device won’t work: the file download button seems to do nothing at all, while the website button opens the URL inside the app’s webview.
Here’s a github with the current code: https://github.com/vemp/ionic_exturl/
How can I get the desired behaviour (and most of all, is that how it should behave? I’ve got more than a doubt about it being a good practice)?
Thanks in advance!