健全定期间隔嗡嗡苹果推送通知 [英] apple push notification with sound buzzing at regular interval

查看:223
本文介绍了健全定期间隔嗡嗡苹果推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有超过iOS上的苹果推送通知的有效载荷小,但棘手的问题。

I have a small but tricky question over apple push notification payload on iOS.

据我所知的推送通知的有效载荷可以有声音(长度LT = 30秒),文本和徽章。现在我想用我的iPhone应用程序是我的供应商(服务器)发送到这个应用程序iPhone屏幕上的推送通知,不断在固定时间间隔(比如每隔1分钟)嗡嗡声,直到屏幕上通知用户抽头(即检查信息)。因此,该通知将不断播放声音和停止时用户水龙头和启动应用程序。

From what I know the push notification payload can have sound (length <= 30 seconds), text and badge. Now what I want with my iphone app is that the push notification sent by my provider (server) to this app on iPhone screen to constantly buzz at regular interval (say every 1 min) until user taps on the notification on screen (i.e. checks the message). Hence, the notification would play the sound constantly and stops when user taps and launch the app.

是否可行?怎么样?

PS:它的企业应用程序,不会被部署在App Store中

PS: Its an enterprise application and would not be deployed on App Store.

先谢谢了。

推荐答案

是的,是的。这是你如何可以实现一个:

Yes, it is. This is how you could implement that:


  1. 的推送通知注册设备

  2. 每次30-60秒发出与裁判推送消息到声音

  3. 无效每个消息30-60秒之后,使空间的新

  4. 当用户重新打开应用程序,注册应用程序作为重开服务器并停止发送推送通知

我不知道如何做到这一点看在通知中心,但你可以测试看看吧:)

I do not know how this would look in the notification center, but you can test and have a look :)

这篇关于健全定期间隔嗡嗡苹果推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆