简体   繁体   English

我可以使用Voip Pushkit Notification通知用户有关其他事情的信息,然后再进行VOiP呼叫

[英]Can I use Voip Pushkit Notification for just notify the users about other things then a VOiP call

I am developing an application for home automation. 我正在开发家庭自动化应用程序。 Am I use VoIp background execution to listen my server(not for calls) and notify users locally.(ect. turn on/off lights data) 我是否使用VoIp后台执行来侦听服务器(不用于通话)并在本地通知用户(例如打开/关闭灯光数据)?

Yes, you can utilise pushkit notification for just notifying user about particular things. 是的,您可以利用pushkit通知仅向用户通知特定的事情。 then use local notifications. 然后使用本地通知。 there is no need that it uses only for voip calls. 无需仅将其用于voip呼叫。

Another approach, you can utilise websockets, which constantly broadcast data, when it reaches to device you could schedule local notification. 另一种方法是,您可以利用网络套接字,该套接字不断广播数据,当到达设备时,您可以安排本地通知。

Let me know if you had any trouble in pushkit implementation. 让我知道您是否在实现Pushkit时遇到任何麻烦。

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

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