Does anyone know how to use DataFieldAlert with DataField .
I find the Garmin documentation to be very sparse. Is there anyone who can help me with an example how to use
Does anyone know how to use DataFieldAlert with DataField .
I find the Garmin documentation to be very sparse. Is there anyone who can help me with an example how to use
Did you have a look at the SimpleDataField sample in the SDK ? It has all the elements you need. One catch though: for the alert to work on a actual watch, the notification needs to be authorized,
Thank you very much, I had not noticed that Garmin had made a new SimpleDataField Example
I tried it, and MyAlertView's initialize (extends DataFieldAlert) is being called, but it's onUpdate is never called in the simulator in fenix6.
Bug opened: forums.garmin.com/.../bug-simpledatafield-sdk-example-alert-doesn-t-work
Actually the same happens with the SDK example. Does it work for anyone in the sim?
As with the actual device, in the simulator you have to enable alerts for the data field:
Data Fields > Enable Alerts
I tried it with the SimpleDataField SDK sample and it works for me.
you have to enable alerts
If this is not the default, then almost nobody will do this.
If this is not the default, then almost nobody will do this.
Yes, I agree with you 100%, and I think it's a major problem with the data field alert feature. The majority of people aren't going to "read the manual" or press "Contact Developer", either. If you make a video, they're not going to watch it, etc., etc.
At the very least, when you install a CIQ data field which supports alerts, you should be prompted to enable them (*). (Much like when you install a CIQ data field which supports on-device settings, you're prompted to open the settings.)
(* Maybe this already happens, but based on your comment, it doesn't seem like it.)
However, whenever I say anything remotely critical of Garmin implementation or design, or suggest enhancements, it's characterized as "whining and complaining", so why bother?
Actually it's even worse: I don't know what I changed (I don't think I changed anything, just switched between my project and SimpleDataField example) and now no matter what I do I get an Out Of Memory Error on this line:
WatchUi.DataField.showAlert(new $.DataFieldAlertView());
(probably what's really causing it is:
OK it works now.
I had to: Delete All Apps, Reset Simulator, close simulator window, and then it works (previously I tried it with multiple devices and they all failed). Garmin could really fix the simulator... I don't know, maybe for Valentine's day? ;)