I have submitted the app to the store but it keeps on getting rejected wit this message:
and with this screenshot:
I can only reproduce this in a simulator, due to the fact that the map does not work there, if i use it on a real device it works fine - Anyone have a solution to this so i can make that apple technician happy and upload my app without being rejected?
@GeraldVersluis @NMackay I found the solution by trail and error:
The map cant load the map on the simulator if i do this:
map = new Map(MapSpan.FromCenterAndRadius(_currentPos, new Distance(15))) { IsShowingUser = true, HeightRequest = 100, WidthRequest = 960, VerticalOptions = LayoutOptions.FillAndExpand, MapType = MapType.Satellite, };
all i had to do was to remove MapType and instantiate it outside like below:
map = new Map(MapSpan.FromCenterAndRadius(_currentPos, new Distance(15))) { IsShowingUser = true, HeightRequest = 100, WidthRequest = 960, VerticalOptions = LayoutOptions.FillAndExpand, }; map.MapType = MapType.Satilite;
Thanks for the help!
Answers
Hm I never had this kind of behaviour. Could you check the debug output from the Simulator? Maybe there is something useful in there on why the map isn't showing?
Are you using the default maps control?
@GeraldVersluis Can you see the map on the simulator when you run a Forms app with maps?
Yep! Haven't encountered this problem ever. I must admit I didn't try recently, couple of months ago.
Did you try to create a new project and just add a map control? See what happens?
Did you check the debug output window while running?
@TroelsThisted
Works for me (see attached). I had to remove some details from the picture. Forms PCL 2.1.0 app.
Nope not yet... I think I'll make a new project and see if i can add the map as you suggested.
@GeraldVersluis @NMackay I found the solution by trail and error:
The map cant load the map on the simulator if i do this:
all i had to do was to remove MapType and instantiate it outside like below:
Thanks for the help!
Weird! But good you found a solution! Maybe you should submit this as a bug!
Weird! But good you found a solution! Maybe you should submit this as a bug!
Do tell me how i do that - never done that before?
You can go over to bugzilla.xamarin.com and I think I saw something about it on open.xamarin.com which launched yesterday!
Or, if you're super ambitious, you can now go over to GitHub and fix it yourself in the Xamarin source code