carekit-apple / CareKit

CareKit is an open source software framework for creating apps that help people better understand and manage their health.
https://www.researchandcare.org
Other
2.41k stars 443 forks source link

Local Notification Reminder for Activity #74

Closed bishalg closed 8 years ago

bishalg commented 8 years ago

Hi @umerkhan-apple,

First of all thanks a lot for such a wonderful presentation on WWDC - Getting Started with CareKit #237. At the event you showed Pt Pal app developed extending CareKit.

It would be wonderful if the activity in CarePlan Store itself had the such field for different time in a day, and not only option to give number of times a day.

vlcsnap-2016-06-18-21h57m37s308

Q1. Is there work going on Care Kit to support such feature to allow exact time for event during a day ? If not would you suggest to send pull request extending current framework to store time of the day.

Q2. If Yes on Q1; is Care Kit about to support Local notification support in future, for the use case like in Pt Pal app ? Again would you sending pull request for this case adding helper for Local Notification for activity ?

ninoguba commented 8 years ago

@bishalg here's the correct link to the Pt Pal Pro app that was shown at WWDC.

YuanZhu-apple commented 8 years ago

@bishalg

Q1. Is there work going on Care Kit to support such feature to allow exact time for event during a day ? If not would you suggest to send pull request extending current framework to store time of the day.

I have thought about exact time event before, but we need to figure what is that mean. Is that mean one event is only available within a certain amount time window? Out side that window, the event is either disabled or hidden?

But IMHO, it could be confusing for people to see a changing list through out the day.

Q2. If Yes on Q1; is Care Kit about to support Local notification support in future, for the use case like in Pt Pal app ? Again would you sending pull request for this case adding helper for Local Notification for activity ?

Even with current CareKit, the CarePlanStore can save additional custom information in userInfo. And the app need to provide the message to user too. Can you let me know how the CareKit can help in Local notification?

umerkhan-apple commented 8 years ago

@bishalg Thanks--I'm glad you enjoyed the presentation!

Q1. I agree with @YuanZhu-apple that this would require a proper definition of an exact time event and that definition might lead to user confusion, if it is not globally defined.

If we can find a good solution, then it would be great to incorporate this.

Q2. iOS currently provides an easy way to schedule local notifications. PatientPal used that framework to make their notifications work. You can use the Care Card delegate to show your own UI, like their app, to allow the user to set different times.

Let me know if you any further questions! :)