Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help request #186

Open
jalys opened this issue Mar 30, 2023 · 2 comments
Open

Help request #186

jalys opened this issue Mar 30, 2023 · 2 comments

Comments

@jalys
Copy link

jalys commented Mar 30, 2023

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
Copy link
Author

jalys commented Apr 2, 2023

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

@jalys
Copy link
Author

jalys commented Apr 4, 2023

yes got it working with SendPort an receive port

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant