[Google Maps Library] maps not loading in iOS when built with MABS 6.1

Forge Component
(20)
Published on 26 Feb by Labs
20 votes
Published on 26 Feb by Labs

I am experiencing errors when using this plugin in a mobile application on iOS.  The app will run fine in a browser or on an Android device.  If I use MABS 6.1 and use this plugin on iOS the map will not load.  If i compile the iOS app using 5.2 it works fine.

hmm.  yeah I just got caught out with this too.

Solution

hi!

The Google API Key that you are using has the protection by http referrer?
If the answer is yes, you should add new items where you replace the "https://" by "outsystems://".

If you want to get more information about this, you can find it here:

https://success.outsystems.com/Documentation/11/Managing_the_Applications_Lifecycle/Secure_the_Applications/Apply_Content_Security_Policy#Content_security_policy_and_MABS

Solution

Sofia Mourato wrote:

hi!

The Google API Key that you are using has the protection by http referrer?
If the answer is yes, you should add new items where you replace the "https://" by "outsystems://".

If you want to get more information about this, you can find it here:

https://success.outsystems.com/Documentation/11/Managing_the_Applications_Lifecycle/Secure_the_Applications/Apply_Content_Security_Policy#Content_security_policy_and_MABS

Thank you! this was our issue.


Great to know! =)