如何使用Flutter在Android设备锁定屏幕上访问应用程序?
设定的计时器关闭后,我需要能够从锁定屏幕访问我的应用程序。因此,就像系统警报应用程序一样,用户不必在解锁手机时强调。
I need to be able to access my App from lock screen after a timer I set goes off. So the user doesn't have to stress with unlocking the phone, just like with the system alarm app.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会尽力回答,看看我是否理解这个问题。
系统Alarm-App通常只使用一种通知。
通过Pub.Dev Awesome_notifications和Flutter_local_notifications对此有两个主要的依赖项 - 都可以与Andriod和iOS一起使用。两者都构成文档。我相信您可以使用这两个包装,但是我可以看到有关通知的ActionButton以示为出色的信息。
在您的通知中,您只需像iOS一样停止或打sn脚的按钮。
I'll try and answer, and see if i understand the question corretly.
A system-alarm-app typically just uses a type of notification.
There are two main dependencias for this via Pub.Dev Awesome_Notifications and flutter_local_notifications - both work with andriod and IOS. Both also comprensive documentation. I believe you can use both packs, but i can see that ActionButton on notifications are highlighted for Awesome_Notifications.
In your notification you can simply have a button either stopping or snoozing like with IOS.