Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maps not loading in mobile (ios) #131

Open
idesignpixels opened this issue Oct 21, 2016 · 5 comments
Open

Maps not loading in mobile (ios) #131

idesignpixels opened this issue Oct 21, 2016 · 5 comments
Labels

Comments

@idesignpixels
Copy link

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.

@dburles
Copy link
Owner

dburles commented Oct 21, 2016

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.

@idesignpixels
Copy link
Author

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.

@idesignpixels
Copy link
Author

That's solved it thanks!

@dburles
Copy link
Owner

dburles commented Oct 24, 2016

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.

@dburles dburles added the bug label Oct 24, 2016
@ankitappuria
Copy link

ankitappuria commented Dec 2, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants