Watch face make battery warm

Hello!

I’ve made my first watch face with communication in background to a custom PHP API and many fields for my Instinct 2s solar.

I’ve pushed my app to my watch for the first time yesterday but this night my watch face have bugged and my watch switched to stock face. Today I must reboot my watch because the solar charging was disabled and on Garmin Connect the solar stats say there are a « battery warm » periode 4pm and midnight (maybe the crash moment).

So, my code must be debugged and optimized but I don’t know how I can solve this issue…

Does anyone can help me to improve my app? There are a way to find error log, or something else in the watch files?

Thank you in advance!

  • Wowwww. If it makes the battery warm then try removing empty loops like: for (i=0;i<4000000;i++ ;)

    I heard about many developers struggling with the WF rules, percentage of pixels that can be changed in AOD, and more importantly the time each call to onUpdate, onPartialUpdate can take. But never heard about heat.

    Try using the profiler in the simulator: File > View Profiler