Apparently the latest mobile Safari changed a lot of things breaking web apps that used to work fine before.
-
navigator.geolocation.getCurrentPosition
no longer works unless the site is HTTPS and has no mixed content (images with HTTP src) - I can no longer trigger a click event on a hidden
<input type="file">
The trigger click is unfortunate since I have not been able to find a workaround. Does anybody know how to deal with this?
The following works on the desktop but not on iOS
<template name="example">
<form>
<input type="file" id="file-upload">
<button>Select File</button>
</form>
</template>
Template.example.events({
'click button': function(e,t) {
t.$('#file-upload').trigger('click');
}
})