-
Notifications
You must be signed in to change notification settings - Fork 72
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
throwing error in static Future<void> setServiceMethod(Function serviceMethod) while trying to start foreground service #4
Comments
Same here. any solutions? |
Can you reproduce codes? |
Have the same problem. minSDK 23, max gradle: compileSdkVersion 28 And error occurs, after copy-paste code from pub.dev: E/flutter (10022): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: The method 'toRawHandle' was called on null. |
I also had this error. The called function must be static: static void _globalForegroundService() {....} |
Same Error trrigger when call |
I also got the same error, but I moved |
I got this to work by moving |
Exception has occurred.
NoSuchMethodError (NoSuchMethodError: The method 'toRawHandle' was called on null.
Receiver: null
Tried calling: toRawHandle())
The text was updated successfully, but these errors were encountered: