Ionic2 google map not loading

I Did Article:

But not working on android device:
Sony XPeria SP c5303,
Android version: 4.4.2

I tried to add:

<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval' https://maps.googleapis.com https://maps.gstatic.com https://fonts.gstatic.com https://maps.google.com; object-src 'self'">

Did not help

Inspect with Chrome Developer Tools in Console:

Failed to load resource https://maps.googleapis.com/maps/api/js?key=MY_KEY&callback=mapInit

Tell me what am I doing wrong?
Thanks a lot.

PS: On iOS works perfectly!

Solution

Add permission in the AndroidManifest.xml file:
<uses-permission android:name="android.permission.INTERNET" />

Enjoy!

1 Like