sorry, but what difference does it make in function. i want the sensor to update its position every second.
It has to work in 1000 ms also as in 60000 (1 minute).
As I said in “MIT Inventor”, this instruction works without any problem, I don’t understand why not with kodular.
I assume that this code is correct, if not please let me know if this is not correct.
I tested the exact same code in App Inventor with success.
In the meantime I’ve spent hours trying to figure out why I’m having these problems in Kodular.
First of all, I was only able to establish the connection to Companion with the latest version of Firefox. (Windows 10 latest version)
Chrome, Opera, Edge do NOT work. It always stays at 20% in the companion.
I even tested it in Firefox on Ubuntu 21.04, with three different smartphones, Android 7, 9 & 10.
So far, unfortunately WITHOUT success!
I don’t know what the problem is, I don’t get a display from Location_Sensor1.
And, yes, of course I went outside and tested it outside.
I tested in Kodular and then the exact same program with App Inventor.
It always worked with App Inventor.
By the way, the App Inventor also works on Chrome.
If anyone still has an idea what I could try, it would help me a lot, because I love to work with Kodular, that’s why I switched.
Thanks Anke, yes your APK worked well.
This gave me an idea and although I have a very scurille, I have found a solution.
Here’s what happened: The APK very quickly centered the map on my current position.
When I switched on “Show User” it stopped working, no idea why.
My guess is that Map1 and the instruction cannot access LocationSensor1 at the same time, this should be a bug.
After a few tests I found the following solution that works for me.
Strangely, it doesn’t matter whether I enable or disable locationsensor1.
Map1 is always updated.
I also deactivated both sensors at the same time and it was centered with the map, and of course “show user” was activated by Blocks.
Even after waiting for 5min I didn’t get anything in the app. After few minutes later when I re-enter I get like this. Location sensor will take lot of time to read your position so better use map location block. It will give you the position faster than location sensor block