Search code examples
javasmsjsmpp

SMS sent via JSMPP not saved on a phone - "push" only


I'm sending SMS via JSMPP as described in SubmitMultipartMultilangualExample.java provided by JSMPP authors. Current SMS is with latin symbols only and does not overlap 160 chars limit - no multipart message is sent, single one only.

So on mobile phone I see only push notification with Cancel and Save buttons (Android) or simply open message on my old Sony Ericsson. Text is delivered correctly, but message does not appear in "incoming" folder!

How to send ordinary SMS with no "hacks"?

Created also issue on JSMPP's github.


Solution

  • Changed MessageClass.CLASS0 to MessageClass.CLASS1 at GeneralDataCoding's constructor parameter and it's gone.

    Github comment makes it clear: class 0 means "Flash SMS" which is not stored on a phone.

    For further info refer to github's issue.