hide sms notification

micheleBr

Member
Licensed User
Longtime User
hi !
I am a new user of B4A, I ask a question and need your help:
by using "SmsInterceptor", I intercept a particular incoming sms:
B4X:
Sub smsIncerc_MessageReceived (From As String, Body As String) As Boolean    
    If Body = "909090" Then
       'TODO    
    End If
End Sub
I created a service for this ..
is it possible do not display the notification when this specific sms comes in phone?
tnx in advance!!
 

flyingbag

Member
Licensed User
Longtime User
Yes...
If you "return true" from that sub - the message is not displayed
If you return false - it is handled just like any other message
 
Upvote 0
Top