tijder / SmsMatrix

A simple SMS <--> Matrix bridge.
https://matrix.to/#/#smsmatrix:matrix.org
GNU General Public License v3.0
214 stars 37 forks source link

Support for receiving MMS and basic support for sending #19

Closed ghost closed 6 years ago

ghost commented 6 years ago

I've implemented support for receiving MMS messages and some basic handling for sending them. There's no proper API for this so your mileage may vary on different phones/OSes. I tested on a Grand M running Android 6.0.

The code for receiving MMS messages is fairly complete as far as I can tell. I can receive pictures just fine, and it should work for other file formats too. Support for new file formats should be as simple as adding them to the list of MIME types in MMSMonitor.java.

I have no idea how to send an MMS message using Android, so I'm just linking the recipient to the URL of the file on the Matrix server. Should do the trick for now.

tijder commented 6 years ago

Looks good. Thanks!