Hi all. I have this code that work without problem if device is ON.
You need to initialize SmsInterceptor in Service_Create:
And then handle the event:
In this way the device that receives the message does not "see the same" because set to "Return True" and all work if device is ON.
But if the device is OFF and we send the message, the device will turn ON will see the message.
Can i avoid this ?
Thank you
Marco
You need to initialize SmsInterceptor in Service_Create:
B4X:
Dim SI AsSmsInterceptor
SI.Initialize2("SI", 999)
And then handle the event:
B4X:
Sub SI_MessageReceived (From AsString, Body AsString) As Boolean
ToastMessageShow(From, True)
Return True
End Sub
In this way the device that receives the message does not "see the same" because set to "Return True" and all work if device is ON.
But if the device is OFF and we send the message, the device will turn ON will see the message.
Can i avoid this ?
Thank you
Marco