You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
W/FlutterJNI(23350): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: x-slayer/accessibility_event.
#29
Open
adityaiueo opened this issue
Mar 12, 2024
· 0 comments
Problem:
I am attempting to identify the currently active application using the Flutter Accessibility Service. After following the instructions provided on the package’s pub.dev page, I utilized event.packageName to achieve this. However, upon implementing the code in my main.dart, I encountered the following error:
W/FlutterJNI(23350): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: x-slayer/accessibility_event. Response ID: 131
This error occurs after my application is closed, and persists even when the application is reopened.
Steps to Reproduce:
Install the flutter_accessibility_service package and follow the instructions in the README.
I'm just adding the following damn code to the MyApp class in main.dart:
Run the application on an emulator and enable accessibility permissions.
Close the app.
Expected Behavior: The getCurrentApp() function should log the package name in the terminal, but it does not execute as expected, and no package name is logged.
Actual Behavior: The error message is displayed, and the expected behavior does not occur.
Issue Description
Problem:
I am attempting to identify the currently active application using the Flutter Accessibility Service. After following the instructions provided on the package’s pub.dev page, I utilized
event.packageName
to achieve this. However, upon implementing the code in mymain.dart,
I encountered the following error:This error occurs after my application is closed, and persists even when the application is reopened.
Steps to Reproduce:
flutter_accessibility_service
package and follow the instructions in theREADME.
Expected Behavior: The
getCurrentApp()
function should log the package name in the terminal, but it does not execute as expected, and no package name is logged.Actual Behavior: The error message is displayed, and the expected behavior does not occur.
any idea how to fix it?
your help is wanted! @X-SLAYER @fahimfoysal2 @avisihag
Thank You
The text was updated successfully, but these errors were encountered: