问题
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
Today Notification screen -
we can do this(your alarm......) using APP Extension (using User defaults), right?
As Pop up screen
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