Note that there are some explanatory texts on larger screens.

plurals
  1. POInteresting issue with SMS Messaging on Android. Bug?
    primarykey
    data
    text
    <p>I'm writing an SMS receiver for an android application and have encountered an interesting problem. </p> <p>First off, it works! Ok, so you might think, then what's the problem? Ok, so working and working perfectly are very different things. I am able to send SMS messages to the phone, and it triggers in my onReceive function and does what I want.</p> <p>The Problem: That this only works when sending SMS messages from another phone. I've tried repeatedly sending text messages from my computer using various websites. <a href="http://www.freetxt.ca/" rel="nofollow noreferrer">http://www.freetxt.ca/</a> , <a href="http://www.txt2day.com/" rel="nofollow noreferrer">http://www.txt2day.com/</a> . But NONE of these SMS messages sent are triggering the SMS_RECEIVED event, but they are all received by the phone as an SMS and go to my inbox. </p> <p>Is this a bug? From a phone it works perfectly, from a computer it doesn't work at all. Is the event triggered from an input format that computer generated SMS's don't have? </p> <p>This has me stumped. Anyone have any insight on this? </p> <p>Here is part of my manifest. It works with phone SMS messages:</p> <pre><code> &lt;receiver android:name="com.blah.Listeners.SMSReceiver" android:enabled="true"&gt; &lt;intent-filter android:priority="1000"&gt; &lt;action android:name="android.provider.Telephony.SMS_RECEIVED" /&gt; &lt;/intent-filter&gt; &lt;/receiver&gt; &lt;uses-permission android:name="android.permission.RECEIVE_SMS" /&gt; </code></pre> <p><strong>UPDATE!!</strong>: Thanks to the comments below and <a href="https://stackoverflow.com/questions/5329819/detecting-mms-messages-on-android">this</a> posting I was able to trigger on WAP_PUSH_RECEIVED to intercept incoming MMS messages. I've added the following to my manifest file: </p> <pre><code> &lt;receiver android:name="com.desDemo.Listeners.PushReceiver"&gt; &lt;intent-filter&gt; &lt;action android:name="android.provider.Telephony.WAP_PUSH_RECEIVED" /&gt; &lt;data android:mimeType="application/vnd.wap.mms-message" /&gt; &lt;/intent-filter&gt; &lt;/receiver&gt; &lt;uses-permission android:name="android.permission.RECEIVE_MMS"/&gt; </code></pre> <p>Does anyone know how I can get the message content from my receiver? </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload