如何接收其他应用程序的推送通知? [英] How can I receive push notifications of an other app?

查看:223
本文介绍了如何接收其他应用程序的推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你们中的大多数人可能都知道卵石手表,该手表会收到您手机的推送通知.

Most of you guys may know the pebble watch, this watch receives push notifictions of you phone.

他们能够接收一些通知.

They are capable of receiving some notifications.

  • 来电显示
  • 电子邮件(Gmail或任何IMAP电子邮件帐户)
  • Android和iPhone上的短信
  • iMessage(仅适用于iOS)
  • 日历警报
  • Facebook消息
  • Twitter
  • 天气警报
  • 静音振动警报器和计时器

我该怎么做? 也许他们使用Facebook api或类似的东西写了一些自己的通知. 但是如何通过短信和通话做到这一点?

How can I do the same? Maybe they wrote some notifications their self using the facebook api or somthing like that. But how to do this with sms and calls?

您可以捕获哪些通知?

推荐答案

它使用蓝牙并通过蓝牙进行对话以访问所有数据.它没有做任何花哨的事情.但是,所有这些数据都来自操作系统,而不是来自设备上的应用程序.

It uses Bluetooth and talks through that to access all that data. It does not do anything fancy. However, all of that data is coming from the OS, not from applications on the device.

要回答您的问题-无法在自己的应用中获取所有这些通知.您可以使用CoreTelephony访问与来电相关的一些数据,还可以集成Facebook和Twitter API来获取该数据,但实际上您必须自己做.不幸的是,这里没有银弹!

To answer your question - there is no way to get all of these notifications in your own app. You can use the CoreTelephony to access some of the data related to incoming calls and you could integrate Facebook and Twitter APIs to get that data, but you really would have to do it all yourself. There's no silver bullet here unfortunately!

这篇关于如何接收其他应用程序的推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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