can you please tell, why we don't use workmanager here. I saw workmanager is also able to do the background task. Then what's the difference between flutter_background_service and workmanager. In which case we choose flutter_background_service and in which we choose workmanager?
Work manager will execute code at once. Like if we set some sheduled messages.. But background service is the services which continuesly run in background
@@justflutter I've seen in the pub, workmanager , "This is especially useful to run periodic tasks, such as fetching remote data on a regular basis.", That means, it runs continously, am I right? In that case, I think you said the opposite
For Ios it is not Working , Can you Suggest any solutions to run service when app is in kill state , Any Suggestions from Others , it Helps me a lot , Thanks in advance
Sir I'm working on namaz notification app and I want to receive notification on time so is it good approach to use this? Or how to get notifications in app killed state on time?
my question is can I use services to upload images to server? if so how do I pass data from UI to background service. Do those services have parameters? Thank you
there is neither the dependency block in my andriod.gradle file nor the build script block . but when i add it myself it gives a lot of errors for compatibility . the ext.kotlinversion is also not written there. how to figure out this? kindly help
is this possible I have to run background music on selected battery parsentage In IOS device (if I selected 45% battery on my device when it become 45per the alarm ring on background)
But sir when i killed my app from recent in ios the service is being stop running. In android its working fine after killing the application. Is there any way to run same as in ios
ios background service doesn't work. On foreground it works. on Android it works both. I don’t understand why and i doesn’t find any solution after i searched deeply. Xcode doesn’t give me any error about it. Do you have any idea? I appreciate it if you give me some clue about it.
Sir I have implemented the background service and flutter local notification, Now I want to cancel background services and hide notificition, when user tap on cancel action in notification. Like youtube and google maps. Please guide. I am unable to handle cancel task, means where to call?
What is the real life use, just showing notifications? And your video would have been more helpful if you could have shown some work being completed in the background. Like calling data from an API, and storing it in a local database. Thanks anyway.
ye video great hai sir.... magar please sir.. phone auth mein problem arahi hai ... wo otp ajata hai magar sms naii ataa jiss mei code show ho.. please make a video on phone auth... emergency.
Please part 2, pleeeasseee ! Great video. Thanks. I need to catch incomming calls and I think this is almost what I need. I already have the code in android native, just need to know how to add that code into this plugin. Thanks
@jorgericardorodriguezzapat427 Have you been able to find a solution. I have been searching, I even tried using workmanager but it gave me a missing plugin exception error. My situation is just like yours
Thanks for this video i had trouble understand this concepts for the past few weeks no my doubts are clear.
can you please tell, why we don't use workmanager here. I saw workmanager is also able to do the background task. Then what's the difference between flutter_background_service and workmanager. In which case we choose flutter_background_service and in which we choose workmanager?
Work manager will execute code at once.
Like if we set some sheduled messages..
But background service is the services which continuesly run in background
@@justflutter I've seen in the pub, workmanager , "This is especially useful to run periodic tasks, such as fetching remote data on a regular basis.",
That means, it runs continously, am I right?
In that case, I think you said the opposite
Yes, it runs in periodic basics not continuously.@@meshkatshadik
For Ios it is not Working , Can you Suggest any solutions to run service when app is in kill state , Any Suggestions from Others , it Helps me a lot , Thanks in advance
same. can you share if you already solved this problem?
Sir I'm working on namaz notification app and I want to receive notification on time so is it good approach to use this? Or how to get notifications in app killed state on time?
If app killed this is best approach
You can try workmanager too
Ek app try karna mullah ki daud masjid tak
I hope this video helps me in my task. Will update after watching the video. Liked before
Edit: It helped a lot. Thanks so much bro
update?
my question is can I use services to upload images to server? if so how do I pass data from UI to background service. Do those services have parameters? Thank you
Got this error
needs to hold android.permission.SCHEDULE_EXACT_ALARM or android.permission.USE_EXACT_ALARM to set exact alarms
Follow the error
Why does Flutter not support foreground services for Android 11 and 12
Security reasons
@@justflutterthen how do people make music players??
Is there a part 2 following this video?
what if i want to check charger in plug in or not??? when user connects the cable!!!
Is possible to place websocket listener code in background service?
there is neither the dependency block in my andriod.gradle file nor the build script block . but when i add it myself it gives a lot of errors for compatibility . the ext.kotlinversion is also not written there. how to figure out this? kindly help
update in setting.gradel
i want to implement notification with timer when its duration is zero then remove notification otherwise show and user should not cancel
Is possible to place websocket listener code in background service?
Is it only alive about 15-30 seconds in ios background service?
No
sir it is not sending the notification again and again just updating it
It is working fine my code.
May be you are doing something wrong
is this possible I have to run background music on selected battery parsentage In IOS device (if I selected 45% battery on my device when it become 45per the alarm ring on background)
Main function you wrote 'await initializeService()' but it's giving error: plz help
which error
But sir when i killed my app from recent in ios the service is being stop running. In android its working fine after killing the application. Is there any way to run same as in ios
There is a problem in this code for ios.
I will release next part to resolve it
@@justflutter Thank you for your replay. And please release the next part asap .🙂
@script academy can you share update for the working iOS
I like this video, but background service is auto start, when I clicked stop service button and then next time application open.
ios background service doesn't work. On foreground it works. on Android it works both. I don’t understand why and i doesn’t find any solution after i searched deeply. Xcode doesn’t give me any error about it. Do you have any idea? I appreciate it if you give me some clue about it.
Ok let me check it then
@@justflutter I have the same issue have you solved it ?
Super bro it is working thank you for this video
Nice content
quick question sir is the notification in the background undismissable?
like if I try to swipe left or right will it be dismissed?
Background services can not be dismissed. It constantly run unless you turn off from settings
In the main function you wrote 'await initializeService()' but for me it's giving error. Any idea why?
may be you did't define it
holy shit!
liked and subscribe thank you man!!!
also share your code for more experimentation
Welcome
Sir I have implemented the background service and flutter local notification, Now I want to cancel background services and hide notificition, when user tap on cancel action in notification. Like youtube and google maps. Please guide. I am unable to handle cancel task, means where to call?
Bro vo notifications hoty hen.
Background tasks nahi
@@justflutter Thanks sir. Ma us task ko cancel krna chahta hun kesy ho notification sy
I want background location when app is killed or terminated ..in flutter
on start method just call location
No part two?
Part two will be on iphone
Does this work when app is killed or terminated if we remove from recent apps too
it is built for this
Thank you scrip academy for covering important topic
It's my pleasure
What about windows and Linux or Mac background services
can not say anything
Many thanks to you, your video helped me.
Thankyou for love
What is the real life use, just showing notifications? And your video would have been more helpful if you could have shown some work being completed in the background. Like calling data from an API, and storing it in a local database.
Thanks anyway.
Will make another video within a couple of days to send location in background.
Or any kind of service in nackground
ye video great hai sir....
magar please sir.. phone auth mein problem arahi hai ... wo otp ajata hai magar sms naii ataa jiss mei code show ho.. please make a video on phone auth...
emergency.
Ok brother
IS it mandatory to show notifications ?
yeah for foreground task.
Saludos, quiero que me ayudes con una app, y quiero saber cual es el costo
is it possible to use more than one service?
Yes why not.
What type of service you would like to put
@@justflutter i want to continuous track user location and incoming calls, but both will only work if user start the service.
@@justflutter i already has the code for both, but incoming call listener doesnt work, maybe because i use a kotlin code with EventChannel to do that.
@@unleedobj both can be put in background service
i try to apply your code into my app but i got this err: ERROR:flutter/runtime/dart_vm_initializer.cc(41)
Thank you so much for this tutorial
Bhai next time try adding the source code link so that we can get started and build on top of it.
Source code will be shared today
@@justflutter Where ?
@@saadiprogrammer8927 wher
Sir where is part 2?
Uploaded next week
Women Safety Series Complete hogai h?
Yeh usi ki e part hy..
Background p even app close ho g tab bhi shake effect chaley ga
Please part 2, pleeeasseee ! Great video. Thanks. I need to catch incomming calls and I think this is almost what I need. I already have the code in android native, just need to know how to add that code into this plugin. Thanks
Coming soon!
@jorgericardorodriguezzapat427 Have you been able to find a solution. I have been searching, I even tried using workmanager but it gave me a missing plugin exception error. My situation is just like yours
Please part 2!@@justflutter
not working in IOS
Where is part 2?
SIR CAN I GET THE CODE
Next week
not working in android 14
That is NOT surprising.
Great 👍 sir
JAZAKALLAH
Great tutorial
JAZAKALLAH
Excelent video!
thankyou
part 2 please...
Thanks you!
Ios part will be uploaded next week
bro please share source code
useless for ios, it keeps it alive 15 to 30 seconds :(
for IOS I have to work around more
thnx big man
thank you sir your code work
not working on ios