Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Native map view is blank
Started by Divergent Monkey Mar 26 2018 11:08 AM

- - - - -
4 replies to this topic
ios map
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Divergent Monkey

[GLOBAL: userInfoPane.html]
Divergent Monkey
  • Contributor

  • 354 posts
  • Corona SDK

Hi,

My app uses the native Map view, which works fine on some iOS devices but not on others. The location services settings are identical on all devices (i.e. "on") but e.g. on an iPad running on iOS 9.3.5 the screen is blank where the map is supposed to be. Is this a device, iOS version or setting issue?

 

As far as I can tell from googling, iOS 8 is the current minimum requirement for Corona, which would mean that the iPad I mention above should be fine from that aspect.

 

Looking in the xcode console when starting the app on the device, it reads

 

Mar 26 21:23:38 MyIpad MapApp[191] <Warning>: source <VKBuildingFootprintTileSource: 0x1751df40> wants grid size 64.000000, min display z: 13, min download z: 16. This is probably a bug!
 
and a few seconds later this appears:
 
Mar 26 21:23:47 MyIpad locationd[69] <Notice>: Location icon should now be in state 'Inactive'

 

Any ideas? 



[TOPIC: post.html]
#2

tss2

[GLOBAL: userInfoPane.html]
tss2
  • Observer

  • 2 posts
  • Corona SDK

I have the same problem on that version of IOS. Did you figure out how to solve the problem ? 

 

Tks



[TOPIC: post.html]
#3

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,547 posts
  • Enterprise

My suggestion would be make sure you have all the appropriate location services messages in your build.settings.

settings =
{
	iphone =
	{
		plist =
		{
			UIRequiredDeviceCapabilities = {"location-services", "gps" },
			NSLocationWhenInUseUsageDescription = "This app uses the GPS when active to determine where to report weather for.",
                },
        }
}


Now if you have the UIRequiredDeviceCapabilities line, then you're running on an iPad with out LTE support, it won't have a GPS, so you might want to try and not require that feature if WiFi locations are good enough. But you have to have the various NSLocationWhenInUseDescription in your plist.

 

Rob



[TOPIC: post.html]
#4

tss2

[GLOBAL: userInfoPane.html]
tss2
  • Observer

  • 2 posts
  • Corona SDK

I opened the maps app, give some permissions and open my app again, and now it is working.  :huh:



[TOPIC: post.html]
#5

Divergent Monkey

[GLOBAL: userInfoPane.html]
Divergent Monkey
  • Contributor

  • 354 posts
  • Corona SDK

I never did solve that issue...

 

The iPad I am testing on has GPS and the apple map app works perfectly fine on it. When I open my app on the iPad, I even get the question if I want to allow the app to access location services. Touching "Allow" does not help. Checking in settings in the location services view, I can see that the app is allowed to use the gps.

 

In other words, all seems in order but the map still does not show.




[topic_controls]
[/topic_controls]