GringerApps/minimalin

Pebble Health nag screen with Health disabled

Closed this issue · 3 comments

Nag screen with occasionally pop up with this watchface. I have the Health features turned off on my watch, as I do not have the watch on 24/7. Had the same issue with another watchface, required some dev changes to remove access to the Heath features to resolve.

@timothythlau do you have or can you point me to any solution for that?

I have a feeling it has something to do with this function:

static void tick_handler(struct tm *tick_time, TimeUnits units_changed){
  if(HOUR_UNIT & units_changed){
    HealthActivity activity = health_service_peek_current_activities();
    if(activity == HealthActivityNone){
      bool vibrate_on_the_hour = config_get_bool(s_config, ConfigKeyVibrateOnTheHour);

Looks like the tick handler for vibrating every hour will use the Pebble Health API to check if the user is sleeping or not. Would probably require a check if health capabilities are enabled or not before actually querying the API.

@timothythlau sorry about the (extremely) late reply but I had a break from coding for some time. Your PR is merged but I don't know if it will solve the issue though.