Android Question Google Maps problem :(

Fadi-l

Member
Hi everyone ..

I'm trying to add a google map to my app, but the map opened empty!

B4X:
Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("google_maps_ui")

    Button1.Visible = False
    Wait For MapFragment1_Ready
    gmap = Mapfragment1.GetMap
    Button1.Visible = True
    
    rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCATION)
    Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
    If Result Then
        gmap.MyLocationEnabled = True
    Else
        MsgboxAsync(Languages.getString("toast_permisstions"),"")
    End If

End Sub


B4X:
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)

AddApplicationText(
<uses-library
      android:name="org.apache.http.legacy"
      android:required="false" />

<meta-data
  android:name="com.google.android.geo.API_KEY"
  android:value="AIzaSyAgtNpJwvh7-xnktPnvxaTcfhafxxxxxxxxx"/>
)

images attached, from google maps apis and screenshot from the app

Thanks in advanced
 

Attachments

  • application_restriction.jpg
    application_restriction.jpg
    100.4 KB · Views: 202
  • credentials.jpg
    credentials.jpg
    85.7 KB · Views: 189
  • enabled_apis.jpg
    enabled_apis.jpg
    31.9 KB · Views: 180
  • Screenshot.jpg
    Screenshot.jpg
    56.9 KB · Views: 189
Top