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

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

问题描述

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

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 消息
  • 推特
  • 天气警报
  • 静音振动闹钟和定时器

我该怎么做?也许他们使用 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天全站免登陆