1

My android app sends a Data sms. All the phones are able to receive that message except my android. I have added a broadcast receiver in the manifest:

<receiver android:name=".SMSReceiver"> <intent-filter android:priority="10"> <action android:name="android.intent.action.DATA_SMS_RECEIVED" /> <data android:scheme="sms" /> <data android:port="5009" /> </intent-filter> </receiver>

The application does not give any response when data sms is received, although the msg reaches the inbox. Help.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
harshit
  • 11
  • 5
  • have you tried`code``code`If a host is not specified for the filter, the port attribute and all the path attributes are ignored. – pjwin Oct 09 '17 at 04:14

2 Answers2

0

Receiving a Binary DATA SMS is currently disallowed/broken in the Android O Preview 2. See this:

https://issuetracker.google.com/issues/62052486

DataDino
  • 1,507
  • 1
  • 15
  • 30
0

It looks like this might be a known issue, see this Stackoverflow question:
How to send and receive data SMS messages

This blog seemed to suggest it is possible, but the comments underneath indicate somebody never got it to work.

Community
  • 1
  • 1
Dan J
  • 25,433
  • 17
  • 100
  • 173