Telephony
Telephony copied to clipboard
Help request
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
is there a way communicationg using sendPort and receivePort between the main and background process ?
yes got it working with SendPort an receive port