cbitstech / Purple-Robot

Sensing and automation platform for Android.
Other
38 stars 19 forks source link

Badge field of Purple Notifier not updating on PurpleRobot.updateWidget call #200

Closed estory1 closed 10 years ago

estory1 commented 10 years ago

Given:

{
    "command": "execute_script",
    "script": "PurpleRobot.updateWidget({'identifier': 'H2H', 'badge': 'Test' });"
}

...the badge field of any (and all, but I only tested 1) H2H widgets should update to display "Test". This does not occur on my phone.

This is relevant to my interests as I need to display points for a medication-adherence app on the widget...

estory1 commented 10 years ago

It should be additionally noted that this issue also appears after doing a "Clear cache" and "Clear data" for both PN and PR and re-creating the "H2H" identifier...

It also seems PurpleRobot.updateWidget is not updating the widget(s) at all -- whether the badge field or any other in this state, i.e. that the badge issue I originally saw is symptomatic of a more-general issue...

audaciouscode commented 10 years ago

Fixed due to endless loop present when badge text was empty.