Upvote 3

Url is nor working on android app

In Progress Ifwarholstillalive 4 years ago

i had linked an url to a hotspot. On the prototype it works great, but when i export to native app it does't work anymore :'(

Replies (2)

I have the same issue, link works whie simulating/ pressing "View on Device". Once I export it to native app, upload it to adobe phone gap to generate an apk, and install it, the URL links do not open at all on the android device. Is there any solution or work around for this?


This requires a few extra steps:

1 - Export to Native app

2 - Unzip the file

3 - Open the config.xml file and add these lines just before the </widget> tag

<gap:plugin name="cordova-plugin-inappbrowser" source="npm" />
  <access origin="*"/>
<allow-navigation href="*" />

4 - Open index.html and add this line before the </body> tag

<script src="cordova.js"></script>
5 - Open resources/jim/javascript/function-jim-main.js and replace line 337 that says something like window.href with

cordova.InAppBrowser.open(target, "_blank", 'location=no');

Leave a Comment
Attach a file