如何使用Flutter在Android设备锁定屏幕上访问应用程序?

发布于 2025-02-03 22:58:36 字数 65 浏览 2 评论 0原文

设定的计时器关闭后,我需要能够从锁定屏幕访问我的应用程序。因此,就像系统警报应用程序一样,用户不必在解锁手机时强调。

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沒落の蓅哖 2025-02-10 22:58:36

我会尽力回答,看看我是否理解这个问题。


系统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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文