We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b19aa8d commit f35ce92Copy full SHA for f35ce92
apps/ios/boot.js
@@ -124,6 +124,7 @@ E.on('notify',msg=>{
124
"tv.twitch": "Twitch",
125
// could also use NRF.ancsGetAppInfo(msg.appId) here
126
};
127
+
128
129
//if (appNames[msg.appId]) msg.a
130
if (msg.title === "BangleDumpCalendar") {
@@ -227,6 +228,12 @@ E.on('notify',msg=>{
227
228
lon: d.lon,
229
location:d.city
230
}, require("Storage").readJSON("mylocation.json", true) || {});
231
232
+ if(Math.abs(myLocationJson.lat - locationJson.lat) < 0.0001 && Math.abs(myLocationJson.lon -locationJson.lon) < 0.0001){
233
+ //same location, do not write
234
+ return;
235
+ }
236
237
myLocationJson.lon=locationJson.lon;
238
myLocationJson.lat=locationJson.lat;
239
myLocationJson.location=locationJson.city;
0 commit comments