Hi Erel!
I'm having trouble with the Phone Library events SmsDelivered & SmsSentStatus.
The events are raised after multiple sms send commands but the phone number returned is always the last one in the batch.
example:
mysms.send ("xxxxxx01","Test1")
mysms.send ("xxxxxx02","Test2")
mysms.send ("xxxxxx03","Test3")
The events are raised 3 times but the returned PhoneNumber is always "xxxxxx03"
The events are in a service module and the code is below:
Am I missing something?
Thanks!
I'm having trouble with the Phone Library events SmsDelivered & SmsSentStatus.
The events are raised after multiple sms send commands but the phone number returned is always the last one in the batch.
example:
mysms.send ("xxxxxx01","Test1")
mysms.send ("xxxxxx02","Test2")
mysms.send ("xxxxxx03","Test3")
The events are raised 3 times but the returned PhoneNumber is always "xxxxxx03"
The events are in a service module and the code is below:
B4X:
Sub Process_Globals
Dim PhoneId As PhoneId
Dim PE As PhoneEvents
End Sub
Sub Service_Create
PE.InitializeWithPhoneState("PE", PhoneId)
Dim SI As SmsInterceptor
SI.Initialize2("SI", 999)
End Sub
Sub PE_SmsSentStatus (Success As Boolean, ErrorMessage As String, PhoneNumber As String, Intent As Intent)
Log ("SMSSentStatus:" & Success & ":" & ErrorMessage & ":" & PhoneNumber, True)
End Sub
Sub PE_SmsDelivered (PhoneNumber As String, Intent As Intent)
Log ("Receipt from " & PhoneNumber & CRLF)
End Sub
Am I missing something?
Thanks!