没有通知图标或 WAP-PUSH 消息的 Android 短信拦截

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1732537/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 03:32:43  来源:igfitidea点击:

Android SMS intercept without notification icon or WAP-PUSH messages

androidsmsnotificationsbroadcastreceiver

提问by michael

Is there a way to intercept an SMS with BroadcastReceiveras for example herebut without showing any notifications to the user and immediately deleting the message that contains for example some keyword

有没有办法用BroadcastReceiver拦截短信,例如这里,但不向用户显示任何通知并立即删除包含某些关键字的消息

EDIT:

编辑:

What I need is to have some communication between android phones, one to one, and I thought that sending SMS messages would solve the problem, but the SMS notification are not needed for that, maybe the WAP PUSH messages would better for that but I have no idea how to send them from android phone. If someone has any idea that would help, please put it here :)

我需要的是在 android 手机之间进行一些通信,一对一,我认为发送 SMS 消息可以解决问题,但不需要 SMS 通知,也许 WAP PUSH 消息会更好,但我有不知道如何从安卓手机发送它们。如果有人有任何有用的想法,请把它放在这里:)

采纳答案by michael

Some guys from the Ericsson lab presented their push solution during the droidcon this year (with some additional reasoning why push is good).

爱立信实验室的一些人在今年的 droidcon 上展示了他们的推送解决方案(还有一些额外的理由为什么推送是好的)。

Here's the link to their site: https://labs.ericsson.com/apis/mobile-java-push/blog/push-android-droidpush-droidcamp

这是他们网站的链接:https: //labs.ericsson.com/apis/mobile-java-push/blog/push-android-droidpush-droidcamp

回答by Phill Pafford

I would recommend PUSH or a web service to do the task your requesting.

我会推荐 PUSH 或 Web 服务来完成您请求的任务。

WAP is a SMS message with a URL, it's goal is to allow users to download content from the web, kinda like a MMS message but for phones without MMS capability. Usually it's a premium message (Meaning the end user pays for these).

WAP 是带有 URL 的 SMS 消息,其目标是允许用户从 Web 下载内容,有点像 MMS 消息,但适用于没有 MMS 功能的手机。通常这是一条优质信息(意味着最终用户为这些信息付费)。

As for SMS, I don't think you can delete these from the phone without the knowledge of the user. Think legal on this. Would you want to receive and send SMS messages without your knowledge? SMS can also bill your phone so I'm thinking legally I would recommend avoiding this.

至于短信,我认为你不能在用户不知情的情况下从手机中删除这些。想想这是否合法。您想在不知情的情况下接收和发送 SMS 消息吗?SMS 也可以对您的手机收费,所以我认为合法我建议避免这种情况。

Another note if you're going to use SMS is that you would need a short code and a aggragator. Even if you have the short code and aggragator you still need the users permission to send reoccurring messages to their phone via application/phone.

如果您打算使用 SMS,另一个注意事项是您需要一个短代码和一个聚合器。即使您拥有短代码和聚合器,您仍然需要用户许可才能通过应用程序/电话向他们的电话发送重复出现的消息。

I would recommend these links for reading:

我会推荐这些链接阅读:

  1. Android Push Notification
  2. http://www.anddev.org/calling_a_web_service_from_android-t348.html
  3. Web Services
  1. 安卓推送通知
  2. http://www.anddev.org/calling_a_web_service_from_android-t348.html
  3. 网页服务

回答by HackNone

Yes, you could intercept Android SMS without notification icon.

是的,您可以在没有通知图标的情况下拦截 Android 短信。

Here is the solution: Can we delete an SMS in Android before it reaches the inbox?

这是解决方案:我们可以在 Android 中的短信到达收件箱之前删除它吗?

回答by user374527

check out Xtify - similar to C2D for Froyo with the ability to push intents but, Xtify does a lot more and does it across Android, iPhone and Blackberry.

查看 Xtify - 类似于 Froyo 的 C2D,具有推送意图的能力,但 Xtify 做的更多,并且可以跨 Android、iPhone 和 Blackberry 执行。

xtify uses an SDK for easy implementation and has a web console and web service to configure messages to one, some or all of your users.

xtify 使用 SDK 来轻松实现,并具有 Web 控制台和 Web 服务来配置发送给您的一个、部分或所有用户的消息。

you can create rules that determine when a message gets sent – you can even push notifications using location as the trigger as the SDK runs in the background and provides access to persistent location.

您可以创建确定消息何时发送的规则——您甚至可以使用位置作为触发器推送通知,因为 SDK 在后台运行并提供对持久位置的访问。

reach out with questions to [email protected]

有问题请联系 [email protected]