Android Question one long sms causes multiple notifications to be raised

RichyK68

Active Member
Licensed User
Longtime User
Hi,

When using the SmsInterceptor and listening for incoming messages, I find the new message event is raised multiple times for a single SMS (when it is longer than 160 characters). I'm aware that when it's more than 160 characters it is split up, and Android stock messages will combine them back into the one message. How can I get more information beyond the From and the Body, maybe like the Id of the message, so that I can treat multiple events as a single event relating to the same message? Is there another library or functionality that can help me here? It must be possible to determine that the events all related to the same SMS as Android does it somehow :)

Thanks,

Richard
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Top