How to show the widget same like an Alarm widget (Clock APP)?

巧了我就是萌 提交于 2019-12-11 06:05:44

问题


I need to do the app same as Clock Alarm functionality. Once we set the Alarm for some time like 3.15PM (Even app is not in running state) It shows in

  1. Today Notification screen -

    we can do this(your alarm......) using APP Extension (using User defaults), right?

    1. As Pop up screen

    2. Alarm Pop Up in lock screen -

My Question -

a. How can we achieve both 2 and 3, Is this a same APP Extension concept?

b. In First - I believe they used User defaults, Can we do the API access in APP Extension like checking web service periodically?

Please suggest solution/idea to achieve this.

Thanks!


回答1:


No, this is not the same thing as an app extension or widget. I also, don't believe its possible to do what you are trying to do.



来源:https://stackoverflow.com/questions/44923177/how-to-show-the-widget-same-like-an-alarm-widget-clock-app

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