离线本地通知(快速)

编程入门 行业动态 更新时间:2024-10-16 02:23:13
本文介绍了离线本地通知(快速)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当我未连接到Internet并且我的本地数据库中注册了一些信息时,我想在我的应用程序(快速)中接收本地通知. 可以这样做吗?

I want to receive a local notification in my app (swift) when I'm not connected to Internet and I have some information registered in my Local Data base. Is it possible to do that please?

推荐答案

本地通知不需要互联网. 关于来自Apple开发人员网站的本地通知

Local Notification doesnot requires internet. About Local Notification from apple developer site

本地通知为您提供了一种方法,可以在您的应用未运行时提醒用户.您可以在应用程序在前台或后台运行时安排一次本地通知.在安排了通知之后,系统负责在适当的时间将通知传递给用户.您的应用无需为系统运行即可传递通知.

Local notifications give you a way to alert the user at times when your app might not be running. You schedule local notifications at a time when your app is running either in the foreground or background. After scheduling a notification, the system takes on the responsibility of delivering the notification to the user at the appropriate time. Your app does not need to be running for the system to deliver the notification.

有关更多信息,请参见此关联.您也可以查看此链接以获取教程.

For more info check this link. You can also check this link for tutorial.

更多推荐

离线本地通知(快速)

本文发布于:2023-11-27 23:13:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639986.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:离线   快速   通知

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!