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

Stops when back button is pressed #19

Open
tanvish99 opened this issue Dec 10, 2020 · 7 comments
Open

Stops when back button is pressed #19

tanvish99 opened this issue Dec 10, 2020 · 7 comments

Comments

@tanvish99
Copy link

When the back button is pressed the app is closed and the foreground service is stopped. But this is not with the music applications which use the foreground service.

@MarceloJads
Copy link

I am having the same issue. When I close the application without stopping the foreground service, it keeps repeating the message 'Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: com.changjoopark.flutter_foreground_plugin/callback. Response ID: 0' and throws an 'android.app.IntentReceiverLeaked' error from a bluetooth serial package immediately after I close the app.

@ChangJoo-Park
Copy link
Owner

Can you show me an issued code?

I try to reproduce this issue on my emulator with example code. But I can't meet same issue.

When I launch example.
image

When I close app with hardware back button
화면 캡처 2021-01-08 111929

@KianuPark
Copy link

KianuPark commented Jan 16, 2021

I have same issue that means Foreground pop-up screen is alive but real code-execution doesn't happen. so just show
flutter foregorundService is running but in fact code(intended-fuction) is killed

@kodmanyagha
Copy link

I'm facing same problem too. If app closed then I'm getting that errors:

W/FlutterJNI( 8351): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: com.changjoopark.flutter_foreground_plugin/callback. Response ID: 0

@Satendra124
Copy link

Same issue . Doesn't works when app terminated .
FlutterView.send called on a detached view, channel=com.changjoopark.flutter_foreground_plugin/callback
This is thrown instead of date time as in example

@naveenbharadwaj19
Copy link

Any solution ?
W/FlutterJNI( 8351): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: com.changjoopark.flutter_foreground_plugin/callback. Response ID: 0

@BrindaRathodB
Copy link

same issue !!

Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: com.changjoopark.flutter_foreground_plugin/callback. Response ID: 43

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

8 participants