Acknowledged

Background.exit() stops working on Watch Face in some cases

I'm developing a watch face and testing it on Garmin Fenix 7 with the latest firmware (in the emulator everything works well). I have a background service there with makeWebRequest function. To debug I've simplified it as much as possible and prevented exceeding 8kb data limit this way:

// Application.AppBase class
function onBackgroundData(data) {
    System.println("onBackgroundData call");
    System.println("data = " + data);
}

// System.ServiceDelegate class
function HTTTPResponseCallback(responseCode as Number, data as String or Dictionary or Null) as Void {
    // ignore data
    System.println("HTTTPResponseCallback call");
    Toybox.Background.exit("Success");
}

Most of the time it logs the following:

HTTTPResponseCallback call
onBackgroundData call
data = Success

But sometimes after the device is reloaded or after waking up and exiting sleep insights widget I'm getting this:

HTTTPResponseCallback call
HTTTPResponseCallback call
HTTTPResponseCallback call
HTTTPResponseCallback call
HTTTPResponseCallback call
...

So, it seems that Toybox.Background.exit() stopes passing any data. 

I've found some topics regarding this on developers forum that developers time to time face this issue, but it's hard to catch exact moment it happens. That is why you could see that most of watch face developers use Storage.setValue() and onStorageChanged() as a workaround. The most often I catch this bug when switch off and switch on my Fenix 7 device. It happens every 3rd time. 

  • As a phone enthusiast who values both the aesthetic and the durability of smartphone cases, I completely understand the desire to protect your Samsung S23 Ultra https://www.orase.com/collections/samsung-galaxy-s23-ultra-cases while also wanting to showcase its design. Let's dive into how to choose the right case and where to find it.

    Materials: The ideal case should be made from materials that absorb shock without adding too much bulk. Silicone and TPU are great for shock absorption and offer a good grip, which can prevent drops. Polycarbonate is excellent for scratch resistance and adds a bit of rigidity without too much weight.

    Design Considerations: Look for a case that complements the Samsung S23 Ultra's design. Clear cases are a great choice if you want to preserve the phone's original look. Alternatively, minimalist designs can enhance its sleekness without overpowering it.

    Protection vs. Style: Shock-absorbent cases are often perceived as bulky because they need to dissipate energy away from the phone upon impact. However, advancements in materials and design have led to slim, protective cases that don't sacrifice style for safety.

    The Golden Middle Ground: Finding a case that's both stylish and protective involves looking for those that have been cleverly designed with hybrid materials. These cases use a combination of soft and hard components to offer the best protection in a slim profile.

    For a beautifully designed and protective case for your Samsung S23 Ultra, I recommend browsing Orase. Orase specializes in crafting cases that strike the perfect balance between safeguarding your device and enhancing its appearance. Whether you're after something subtle and elegant or a case that makes a statement while offering excellent protection, Orase has options to suit your needs. Their focus on innovative design and quality materials means you can enjoy the best of both worlds - a phone that's both secure and stylish.

  • I just upgraded to a Samsung S23 Ultra because I love its features, but I'm scared of dropping it. Given its sleek design, how can I find a case that offers top-notch protection without hiding its beauty? Where's the best place to shop for such a case?

  • Hi. I'm checking in to see what firmware number your device is on?