I think Garmin made a big change to the Approval Process during that 24+ hr outage a few days ago. Now app updates are being approved within minutes. Awesome!
I think Garmin made a big change to the Approval Process during that 24+ hr outage a few days ago. Now app updates are being approved within minutes. Awesome!
…but at the moment it seems that approvals don‘t work…
I‘ve got many ERAs for Edge devices on getWeatherConditions. All Edges I‘m working for have Weather - so I did not check for has :Weather. Now I get a crash (not on simulator). Had to build all datafields anew. But they are not approved until now.
see this thread forums.garmin.com/.../apps-stuck-in-pending-scan
You always want to null check everything in getCurrentConsitions
As I said, all Edge devices I code for, have Weather. Therefore I have started with:
801 var myWeather = Weather.getCurrentConditions(); ….which never gave an error in the past!
Then I check myWeather for null and then I continue.
But the System Error occurs on line 801! Looks like :Weather is not ready, when it is called the first time in function compute(info).
It could be the weather isn't really ready. That's why you null check everything in "myWeather" you try to use. Not long ago, observationLocationName always became null on real devices, where before that there was usually an actual name.
Looks like :Weather is not ready
It could be the weather isn't really ready.
Hmm you don’t say
That's why you null check everything in "myWeather" you try to use.
How would that help prevent a system error on the following line?
801 var myWeather = Weather.getCurrentConditions();
All Edges I‘m working for have Weather - so I did not check for has :Weather. Now I get a crash (not on simulator). Had to build all datafields anew
var myWeather = Weather.getCurrentConditions();
System Error
Looks like there is a bug report for this:
Note that the example code in the bug report includes a has check (“Toybox has :Weather”), so if that’s what you added to your data fields to avoid this crash, I don’t think it will help.
I can’t see any way for devs to try to avoid this crash (other than not calling getCurrentConditions()). It think this is something Garmin has to fix on their end.
Note that the example code in the bug report includes a has check (“Toybox has :Weather”), so if that’s what you added to your data fields to avoid this crash, I don’t think it will help.
Yes, that‘s what I have added - and more:
var myWeather = null;
if ( Toybox has :Weather ) {
if ( Weather has :getCurrentConditions ) {
myWeather = Weather.getCurrentConditions();
}
}
Let‘s see what ERA brings the next days…
Thanks for your input!