App.accessRule('URL', { type: 'navigation' });


#1

Hello,

In my Meteor APP I have kept a link that goes to my Privacy Policy webpage…

but when I click on it nothing happens… I need the link to open a default browser and open the webpage… I tried both on iPhone and Android… the app does not open the page…

I used App.accessRule(‘websitename.com’, { type: ‘navigation’ });

How do I make this work?


#2
/* in /.meteor/cordova-plugins file */
cordova-plugin-inappbrowser@1.0.1
/* in your view */
<a href="#" onClick='window.open('https://yoursite.com/privacy', '_system');'>privacy policy</a>
/* in /mobile-config.js */
App.accessRule('https://yoursite.com/*',{launchExternal: true})