Mobile first Platform 7.1 - Display user agreement when Application is downloaded

点点圈 提交于 2019-12-12 03:13:37

问题


We have requirement to display user agreement when first time user downloads the application. Is there any event or method that is invoked only one time when the application is downloaded. Any suggestion will be appreciated.


回答1:


There is no such "first time only" method provided by the MobileFirst Platform.

What I would suggest for your requirement would to persistently store the acceptance of the user agreement in a JSONStore document. When you start the app, query the JSONStore to see if it's previously been recorded that the user agreement was accepted, and if not, then present the agreement and don't allow the user to proceed in the app until the agreement is accepted. Then, of course, once the agreement is accepted, record that fact in a JSONStore document, and start the application's normal flow.



来源:https://stackoverflow.com/questions/34667250/mobile-first-platform-7-1-display-user-agreement-when-application-is-downloade

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