当GO短信安装SMS广播接收器不叫 [英] SMS Broadcastreceiver not called when GO SMs install

查看:174
本文介绍了当GO短信安装SMS广播接收器不叫的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实施了拦截收到的短信没有任何问题的短信接收器。然而,当我安装GO短信,并设置禁用其他消息通知,然后我的应用程序没有收到即使我已经设置意图过滤非常高优先级的广播消息。有没有一种方法来克服,使我的应用程序总是收到短信广播,不论对GO短信Pro的应用程序做什么用户,尤其是因为我的应用程序不显示任何UI弹出式通知?当我卸载GO短信,我的应用程序开始变得收到的短节目和正常工作。

I have implemented an SMS receiver which intercepts incoming SMS messages without any issues. However, when I install GO SMS Pro and set "Disable other message notification", then my app does not receive any broadcast message even though I have set the priority on intent filter very high. Is there a way to overcome so that my app always receive a SMS broadcast irrespective of what user does on Go SMS Pro's app, especially since my app does not show any UI pop-up notification? As soon as I uninstall GO SMS Pro, my app starts getting incoming SMS broadcasts and works fine.

下面是当传入短信接收,GO短信安装日志。有一些神奇的由GO短信,我不明白做。有人能解释什么都是在这里完成,我怎么能保证我的应用程序不会得到有序的广播通知,每一次。

Here is the log when an incoming SMS is received and GO SMS Pro is installed. There is some magic done by GO SMS Pro which I don't understand. Can someone explain what is done here and how can I make sure my app does get ordered broadcast notification every time.

推荐答案

添加以下code在你的表现在广播接收机声明

add following code in your manifest in broadcast receiver declaration

<receiver
        android:name="com.application.reciever.SMSReceiver"
        class="com.application.reciever.SMSReceiver" android:exported="true">
     <intent-filter android:priority="999" >
            <action android:name="android.provider.Telephony.SMS_RECEIVED" />
        </intent-filter>
</receiver>

的值必须为整数,如100,数值越大,有更高的优先级。

希望这会帮助你。

这篇关于当GO短信安装SMS广播接收器不叫的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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