简体   繁体   English

可以安排推送通知时间吗? (iPhone SDK)

[英]Is it possible to schedule push notification time ? (iPhone SDK)

I want to schedule push notification after some time or say after 2 days 15 hours. 我想在一段时间后安排推送通知,或者说2天15小时之后。 So after 2 days 15 hours a notification will be sent to a device. 因此,在2天15小时后,通知将发送到设备。 Is it possible ? 可能吗 ? How ?? 怎么样 ??

Since a push notification originates from a server and not the phone itself you can schedule anything the provider makes available. 由于推送通知是从服务器而不是电话本身发出的,因此您可以安排提供者可用的任何时间。 You will have to check with your notification service provider what they make available. 您将必须与通知服务提供商联系,以了解他们可以提供哪些服务。

However if you just need to schedule a future alert on the phone itself, you can use the UILocalNotification class. 但是,如果您只需要在手机本身上安排将来的警报,则可以使用UILocalNotification类。 This will just kick off a notification on the device once the timer expires. 计时器到期后,这只会在设备上启动通知。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM