native.newMapView problems

Hi!

My apprentice is trying to build a map based app and has tried to use the native.newMapView example codes found in the documentation. This causes an error in the simulator; “attempt to index local myMap a nil value”.

I know it doesn’t work in simulator, but it should not cause this kind of error, just inform in the console that it doesn’t work in simulator.

I told her to send the codes to me and I tried them using my iMac. Everything worked without any errors on the Mac.

We use the exact same codes and both use the latest daily build. The main difference is that she is on a Windows PC and Im using a Mac.

I can’t figure out whats happening  :wacko:

Sorry. Unfortunately maps doesn’t work on Windows, we’ll look into it. May I suggest using Live Builds, so she can develop the app right on the device, where maps are supported?

Aha, that explains why.

Info about this should be added in the documentation until it is fixed. We have spend to much time trying to figure out what was wrong with our codes  :unsure:

Thanks Vlads!

No worries! Btw, it’s totally our fault. We’ll fix sample to communicate more clearly what is going on Windows.

Thanks for reporting. Check out Live Builds. It’s easy and convenient - just one checkmark and you’ll basically get simulator running on iOS/Android device. Or all of them together :slight_smile:

Luckily I am using Mac so I have been spared for any problems :slight_smile:

Live Builds is just FANTASTIC and I always use it.

My apprentice uses Live Build now for the Map app and it works great on the Android tablet, even if she has a pesky Windows PC  :smiley:

Sorry. Unfortunately maps doesn’t work on Windows, we’ll look into it. May I suggest using Live Builds, so she can develop the app right on the device, where maps are supported?

Aha, that explains why.

Info about this should be added in the documentation until it is fixed. We have spend to much time trying to figure out what was wrong with our codes  :unsure:

Thanks Vlads!

No worries! Btw, it’s totally our fault. We’ll fix sample to communicate more clearly what is going on Windows.

Thanks for reporting. Check out Live Builds. It’s easy and convenient - just one checkmark and you’ll basically get simulator running on iOS/Android device. Or all of them together :slight_smile:

Luckily I am using Mac so I have been spared for any problems :slight_smile:

Live Builds is just FANTASTIC and I always use it.

My apprentice uses Live Build now for the Map app and it works great on the Android tablet, even if she has a pesky Windows PC  :smiley: