Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MMS Support #17

Open
benjamin-kirkbride opened this issue Sep 19, 2023 · 10 comments
Open

MMS Support #17

benjamin-kirkbride opened this issue Sep 19, 2023 · 10 comments

Comments

@benjamin-kirkbride
Copy link

Is there any way to send an MMS?

@gregjotau
Copy link

@tananaev I have enabled the "send long messages as MMS" in the app, but they do not seem to be sent, and if I get over 160 it is not sent, not even split:

#10

This seems to fix this, but apparently not happening for me at least.

@tananaev
Copy link
Member

tananaev commented Nov 3, 2023

Are you talking about API calls or messages you send from the app itself?

@gregjotau
Copy link

Are you talking about API calls or messages you send from the app itself?

API calls

@tananaev
Copy link
Member

tananaev commented Nov 3, 2023

API calls are different. App settings are only applied to what you send from the app itself.

@gregjotau
Copy link

API calls are different. App settings are only applied to what you send from the app itself.

OK, is there another parameter or payload I can use to make SMS work with the API?

Ref. https://www.traccar.org/http-sms-api/ has no docs on it. Sorry for being lazy not checking the source code :p

@gregjotau
Copy link

I think I might have found the issue, will test later and get back to this thread if I solve it :)

@tananaev
Copy link
Member

tananaev commented Nov 3, 2023

There's no configuration parameter for it currently.

@gregjotau
Copy link

There's no configuration parameter for it currently.

OK, so it is expected not to work? - I tested manually in the app and it works to send MMS, but it fails with the API 🥲

@gregjotau
Copy link

gregjotau commented Nov 4, 2023

I might make a PR if it does not work, is that something you want @tananaev?

Have to use:

https://github.com/traccar/traccar-sms-gateway/blob/9a860e3938d8a6c518c49300ea598668edfd6553/app/src/main/kotlin/com/simplemobiletools/smsmessenger/messaging/MessagingUtils.kt#L136C19-L136C19

In the API code somewhere, the GateWayService:

SmsManager.getDefault().sendTextMessage(phone, null, message, null, null)

@tananaev
Copy link
Member

tananaev commented Nov 4, 2023

Sure, feel free to send a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants