Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Settings screen blank on custom watchface

Hello, 

I developed a watchface for the Versa 4 and in the simulator it worked as I wanted it. Now its published and I installed it on my watch (installing over private link has never worked for me) and when I go to the settings to change colors, it just shows a blank screen. I'm not sure how to debug this, since I can only use the simulator to develop and it works there. Does anyone have a solution to this or has experienced something similar?I'm happy to provide any relevant code. 

Best Answer
0 Votes
1 REPLY 1

I've had a similar problem occasionally.If you see a blank settings page, that's probably because your settings code is throwing an uncaught exception or error.

In my case, I think it was a race condition between the companion code and the settings code. Sometimes the companion code runs first, but sometimes the settings code runs first. If the settings code depends on a variable (or something) that has to be initialised in companion code, bad things can happen when the settings run first. It's hard to debug because you don't get any error messages. You can comment out or otherwise hide/remove blocks of code (settings react elements) to help to isolate the problem. Or, inspect the settings code closely and ask yourself what would happen if it ran before the companion code.

Peter McLennan
Gondwana Software
Best Answer
0 Votes