Things look good on the Android side. I think this is more of an AppSync problem.
Here are a few things to check in the watch application:
- Make sure you create a list of tuples with initial values on the watch. This list needs to to contain your key
GPS_HAS_FIX_KEY
;
Tuplet initial_values[] = {
TupletInteger(GPS_HAS_FIX_KEY, (uint8_t) 0),
/* Other tuplets that you will synchronize */
};
- Make sure you pass those tuplets to the
app_sync_init()
function:
app_sync_init(&sync, sync_buffer, sizeof(sync_buffer),
initial_values, ARRAY_LENGTH(initial_values),
sync_tuple_changed_callback, sync_error_callback, NULL);
Those two steps are required for app_sync to work (cf AppSync reference documentation).