Time based iOS Auto Start

三世轮回 提交于 2019-12-13 04:25:12

问题


I am trying to build an iOS app that aids in Ecological Momentary Assessment of Patients. Basically it is a simple survey app that the patients need to take thrice a day.

I am new to iOS development and thus I cannot take some design decisions, I would really appreciate if some of you could look at these design decisions and let me know if it is possible in an iOS app.

  1. I want the patients to take these surveys thrice a day after their Breakfast, Lunch and Dinner. So I want my app to auto-start or at least pop-up a remainder for the user to start the survey app and fill the questionnaire. Is this possible?
  2. I want to assign a unique ID to each copy of the app, which the app should use to send the data to the central database which resides on the server. I don't want to bother the patients by giving a login form every time they start this app, or even the first time they start the app. So is this possible?

回答1:


  1. Can't auto start app, but you can use local notification to make the patient run your app
  2. If you don't need identify each patient, UUID is the unique ID for each device.



回答2:


That's not possible to start the app automatically on iOS, but you can show reminder in status bar. Use local notifications for this.

Regarding to unique ID, you can generate a random ID on the first launch of the app or just use device's UDID.



来源:https://stackoverflow.com/questions/22706812/time-based-ios-auto-start

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!