I’m having a hard time allowing Cordova to open mailto links.
Adding App.accessRule('*', { external: true }); to mobile-config.js has enabled me to load things from other websites.
I’ve tried App.accessRule('mailto:*', { external: "yes" }); and then App.accessRule('mailto:*', { launchExternal: "yes" }); with no luck getting it work. I’ve also tried swapping “yes” for true.
Does anyone know what I am doing wrong, or another way to get this working?
Looks like this is a Cordova bug. The offending code is in CDVWhitelistPattern in Cordova iOS. Because mailto URLs do not have a host, this crashes the regular expression match.
Not sure what to do about this and whether there are any workarounds. I did confirm that the issue does not occur on the master (4.0) version of Cordova iOS, which is what I hope we can switch to for Meteor 1.3.
Is there a way to completely disable the whitelisting stuff? Trying to think of how else I can get this in production without going for the "so when is 1.3 coming out" question