Activity.LoadLayout("Gmap")
Wait For MapFragment1_Ready
It runs without a problem on a S10e and a S21. But on a Xperia X compact running Android Version 8.0.0
it never gets out of the Wait loop but writes in the mapfragment1 screen: "App has problems with Google-Play-Services.
Please try again" (translated from German). The Debug window stays empty when running in Debug mode.
The standard Google Maps app runs normal on the phone.
Does anyone have an idea what the Google Play Service problem could be?
Installation instructions: - Register your app in Google developer console: https://console.developers.google.com You need to enable Google Maps Android API. Then click on Credentials -> Create Credentials -> API Key -> Android Key. You should get a key that looks like...
www.b4x.com
It worked when I created a new API key though- I have no idea why only the Xperia had this problem and not the other phones....
Example of showing a Google map, in a cross platform B4XPages project. The APIs of the three GoogleMaps libraries are quite different from one another, so we need to use platform specific code for the map creation. Still, it is quite simple to further extend this project and build a cross...