var Maps = require("FuseJS/Maps");
Maps.searchNear(59.9117715, 10.7400957, "pizza restaurant");
I run the app on the Android device and I can access the map, but on iOS nothing happens.
There is nothing on the documentation that says that this only works on Android, so I suppose it’s for both platforms. So I might be missing something on iOS. Can you guys shed me some light on this?
Hey Ana! If you can upload a small, self-contained project that reproduces this issue, it’ll make it a lot easier to test on our end. You can use this Dropbox to send it to us in, if you wish to keep the files private: https://www.dropbox.com/request/ZgndLtJQm5eGzG9cicGK
The only problem with your original code was that the query string part of the searchNear() function included a space in it. And since this lands in an InterApp call that opens an http://maps.apple.com/... link on iOS (which the device then opens in Maps application), the URL parameters obviously have to be urlencoded.
We should probably at least make a note of this in the docs, if not anything else. I will log a ticket on that.