I made a page in my app that shows a Google map with plenty of markers. When I run it with my android emulator it runs without any problem, but when I set the same android emulator to operate as an iOS device, (with dart dev) it shows only a white screen.
The Google maps watermark doesn't show up neither do the markers and everything. I have already checked my API key and it's correct. Maybe it's an emulator error. I have tried the same in many android emulators.
Platform : iOS
Platform: Android
Would anyone have any ideas?
You should set embedded views preview in Info.plist.
Add the key io.flutter.embedded_views_preview and the value YES in Info.plist file.
In my case, the simulator's location was set to none. Setting to Apple fixed the white screen.
Related
I checked my asset and it has the right color, but the colors of the icon in the iOS folder are wrong. I used expo prebuild to create the iOS and Android folders, has anyone else had this issue? I cannot find any questions about this online and I have no idea what the issue is. The first image is what the icon should be, the second is what it is showing up as. The app target in Xcode also shows this strange version so I think it's an issue with react/expo. I have not tested on Android yet to see if this is also an issue there.
NOTE: The colors behind the iOS icons are different because the apps are on different parts of the home screen. That is not part of the issue.
in my Ionic 6 application running under capacitor, i'm using angular googleMaps component.
I need to use this map component in several pages of my application.
In my browser, everything works fine.
When i run the app on my IOS physical device, the map is correctly displayed in the first page.
But, when i navigate to other page with the same googleMap component, the map is displayed greyed out.
When i touch the map, the grey disappears and the map is correctly displayed.
In Google Cloud Console, i resticted the API key to some http urls ( not to an IOS app because of ionic ) but this does not solve the issue.
Do you have any ideas ?
Thanks
I have enabled the canvas but still not able to see anything. I checked on hacking with swift but couldn't find anything. Also instead of simulators it only shows my mac.
I can only see this
I suspect you are making a macOs application instead of an iOS app. When you create a project, make sure you have selected iOS rather than macOs.
I am facing a very strange issue in iPhone simulator.
I have used Map in my app and while I run my app on the simulator it's not loading and I can see just grid on the screen.
My App Screen:
Default Maps App:
Is there any setting or anything which helps me to see Map on the iPhone simulator?
Note: I can get my current location and movement on my MapView but not able to see the visual view of the map on the screen.
Thanks in advance.
I'm using the Google Maps SDK to display a map in my iOS app. Actually, in prior iOS versions (<=8.1) the default blue icon for current location displays correctly, but now in the iOS 8.2 simulator the blue dot looks like this
.
I'm following the exact steps from the google maps SDK documentation
To show the current location I just do:
mapView.myLocationEnabled = true
Any thoughts?
This is a bug. This will not show in real devices. This might be due to drawing the current location on the map in simulator.