megahealth / megaring-oc

MegaRing SDK & Demo for iOS in Objective-C
2 stars 1 forks source link

requestData:MRDataTypeMonitor sometimes returns null when report exists #3

Open jayfar opened 11 months ago

jayfar commented 11 months ago

Sometimes after calling this

[self.device requestData:MRDataTypeMonitor progress:^(**float** progress)

I get null for the data when I am sure there is a sport/exercise report saved in the ring device. It does not happen every time. Sometimes I am able to get the data, but other times I get null.

If I open the official MegaHealthPro app on iOS, this app can download the report, but in my application code it is null.

Can you help me with any ideas on what would cause a report that exists to return null for the requestData call?

I have reviewed these and it appears my code is behaving similar:

Update: I see this case is now commented out in your example code. I was using this in my code 1 year ago. Did something change where I cannot call this at anytime to get report data?

image