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

Clockface Review Process

ANSWERED

Hello there,

 

I'm having a bit hard time understanding the review process. So, I've submitted a free clockface to the GAM and after 10-ish days resubmitted it again because it was not really reviewed by anybody.

 

This time, after a couple of days it was rejected with the following wording:

 

"#displayed values did not correspond with device Today values. Please consult the following link for more information: https://dev.fitbit.com/legal/app-gallery-guidelines/"

 

Can somebody explain to me what does this message actually mean?

 

P.S. Link to source code https://github.com/vasyltech/fitbit-focus.

Best Answer
1 BEST ANSWER

Accepted Solutions

Your code uses a mix of today.local and today.adjusted. It would be best to only use .adjusted. That's what the Today app shows.

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
3 REPLIES 3

Your code uses a mix of today.local and today.adjusted. It would be best to only use .adjusted. That's what the Today app shows.

Peter McLennan
Gondwana Software
Best Answer

Thank you Gondwana! Your response in much appreciated.

 

I'm adjusting the functionality were `adjusted` value has higher precedence than `local`. Considering the fact that device not always in-sync with companion, it is probably the safest route to take. Any thoughts are appreciated

 

function GetTodayMetric(metric, xpath = null) {
    let value = today.adjusted[metric] ?? today.local[metric];

    if (xpath !== null && value !== undefined) {
        value = value[xpath];
    }

    return value !== undefined ? value.toString() : "--";
}

 

Best Answer

No worries. I feel that it's safe enough to just use .adjusted. If syncing hasn't occurred, .adjusted will return the same value as .local. I think...

Peter McLennan
Gondwana Software
Best Answer
0 Votes