Telephony icon indicating copy to clipboard operation
Telephony copied to clipboard

Help request

Open jalys opened this issue 1 year ago • 2 comments

Hello all dev,

I need some clue using this package, I would like to build an application that forward automatically received SMS Eveythings works perfectly in the foreground. I am struggling to access my data in the background context in his function :

onBackgroundMessage(SmsMessage message) { debugPrint("onBackgroundMessage called"); // i would like to get a list of phone numbers store in foreground. }

Could not figure out how to get some data from my app in this function . I tried riverpod, i tried singleton, i tried sharedpreference , i allways get null values.

i am new to flutter and android dev. seems the forground an background are "isolated" ... i feel lost. Any hints appreciated. Thanks all

jalys avatar Mar 30 '23 22:03 jalys

is there a way communicationg using sendPort and receivePort between the main and background process ?

jalys avatar Apr 02 '23 21:04 jalys

yes got it working with SendPort an receive port

jalys avatar Apr 04 '23 10:04 jalys