meteor-google-maps
meteor-google-maps copied to clipboard
Maps not loading in mobile (ios)
In dev browser they load fine but in ios sim/device they do not, I have set my mobile-config.js in the root of my project to have:
App.accessRule('*.google.com/*');
App.accessRule('*.googleapis.com/*');
App.accessRule('*.gstatic.com/*');
I have also tried re-installing the plugin with no luck. I don't get any errors but GoogleMaps.loaded() never evaluates to true.
I think this is an issue with loading the library within Meteor.startup. Is that how you're loading the library? If so, try place GoogleMaps.load within a template onRendered instead.
Thanks for responding so quickly, I am instantiating it this way so I will try this when I get back on Monday and let you know.
That's solved it thanks!
Great! I might leave this open incase others run into the same problem. Seems a bit strange, I'd definitely like to find the underlying cause.
When I am creating a mobile build using run command it is working fine.But When I am creating a android non debuggable build map is not loading. I have this in mobile.config App.accessRule('.google.com/'); App.accessRule('.googleapis.com/'); App.accessRule('.gstatic.com/'); I don't get any errors but GoogleMaps.loaded() never evaluates to true. I had loaded the map in template only.