Telephony
Telephony copied to clipboard
feedback about foreground background instance
Please find my feedback using Foreground and background instance sending SMS.
I have a strange issue,
My app is listening incoming SMS, when i receive an SMS i send a SMS to.
DEBUG MODE & RELEASE MODE
If receive/send background using backgroundinstance .send it works fine, but when i get back foreground i do not receive anymore incoming SMS, well i do not reach onMessage(SmsMessage message), but still somethings happens because i get in the logs.
I/flutter ( 4873): Column is originating_address I/flutter ( 4873): Column is message_body I/flutter ( 4873): Column is timestamp I/flutter ( 4873): Column is service_center I/flutter ( 4873): Column is status
DEBUG MODE
if i only use telephony Instance , when app is background & foreground to reply to SMS, it works fine
RELEASE MODE
same as previously , it works fine foreground, but you must use background.instance when app is bckg. Try sending using instance whenapp is background do not works.
i tried calling Telephony.insta
well , everything works well using API 29 , if i use API 31 , there are some issues when I switch to different instances. I am not experienced enougth ti investigate the bug , sorry .