Hi all,
I've updated an app to B4A v8.00, using PhoneLibrary v2.45 to intercept SMS
All is fine on several devices, except on one user having Android 7.1.1
The behavior is weird:
the first SMS it's not intercepted.. after that, all SMS are intercepted Ok
but.. after a few minutes, the situation is the same (first SMS not and later yes)
seems to be that something is shutting the interceptor off
The relevant code:
Logging:
1) when the first SMS is arriving, the Starter is fired.. so smsRead is also loaded but SMS is not intercepted
2) when the rest SMS are arriving, the Starter is not fired and the SMS are intercepted Ok.. raising the event "GLO_SmsInterceptor"
I'm not sure about what I'm doing wrong (logic or commands)
Thanks in Advance
I've updated an app to B4A v8.00, using PhoneLibrary v2.45 to intercept SMS
All is fine on several devices, except on one user having Android 7.1.1
The behavior is weird:
the first SMS it's not intercepted.. after that, all SMS are intercepted Ok
but.. after a few minutes, the situation is the same (first SMS not and later yes)
seems to be that something is shutting the interceptor off
The relevant code:
B4X:
Starter
Service_Create
StartService(SmsRead)
B4X:
SmsRead
Service_Create
Service.AutomaticForegroundMode = Service.AUTOMATIC_FOREGROUND_ALWAYS
Dim GLO_SmsInterceptor As SmsInterceptor
GLO_SmsInterceptor.Initialize2("GLO_SmsInterceptor", 2147483647)
Service_Start
Sleep(0) 'allow the MessageReceived event to be raised.
Service.StopAutomaticForeground
Logging:
1) when the first SMS is arriving, the Starter is fired.. so smsRead is also loaded but SMS is not intercepted
2) when the rest SMS are arriving, the Starter is not fired and the SMS are intercepted Ok.. raising the event "GLO_SmsInterceptor"
I'm not sure about what I'm doing wrong (logic or commands)
Thanks in Advance
Last edited: