I added both GPS and location sensor into my app. Then I put some blocks like this.
But when I live test on my phone, there is just a gray window appeared on my phone screen. Does it suppose to show a Google Map with my current location? (GPS on my phone was turned on.)
Can you please try this and send us a screenshot of the app? Just to make sure your GPS returns good values. Also make sure that the Zoom property is set to 0. And try to pinch out on the map to check if it is just way too zoomed-in and that is the reason why you see the grey screen.
You can try using: latitude + 0 and longitude + 0 instead of just plain ‘latitude’ and ‘longitude’. Since those blocks return strings, you have to use +0 blocks to convert them into numbers that the map will accept.
Yeah. Try adding 0 to the latitude and longitude blocks as shown in my reply. Also try setting the manual coordinates in a math block as advised above and let us know if either tests work.
Sorry for any confusion. I have 2 andriod phones, one I phone, one IPAD. Usually I tested this project on my Andriods, never tried on IOS. But now I tried to test on both. So IPAD seem to work while Iphone show map but incorrect location. Andriod still doesn’t work either method (0 and manual key in).