Hitendrasinh Rathod
Hitendrasinh Rathod
I also saw FlutterBackgroundService.initialize(yourStartMethod, foreground: false); this But in my case i m not able to do this. May be this is old version so that i facing this issue....
Thanks a lot !! Issue solved..!
I got an issue. when i do setAsBackgroundService() this for notification hide but background service is also stop . it's not work proper. let me tell u my scenario ,...
But i haven't any custom android OS. And I face this issue in every device.
And In my method it's work proper with toast then why not working without toast ? That's the main issue.
Getting crash !! In android version 7....It doesn't happen. In android version 8....It happens. Fatal Exception: android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{67fd813 u0 com.example.sms_scheduler/id.flutter.flutter_background_service.BackgroundService} at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1797) at android.os.Handler.dispatchMessage(Handler.java:106)...
I also facing same issue...Please provide solution ASAP.