Run a Repeatable Work from the Background using WorkManager

  Рет қаралды 8,218

Stevdza-San

Stevdza-San

Күн бұрын

🏆 My Online Courses
stevdza-san.com
☕ Let's get a coffee. You're paying! :)
ko-fi.com/stevdza_san
💻 Github
github.com/stevdza-san
📸 Instagram
/ stevdza_san
⌚Timestamps
0:00 - Introduction
0:27 - Work States
1:16 - Project Overview
2:16 - Background inspector
3:03 - Flex Interval
4:08 - Unique Work Request
6:56 - Observe your Work
9:01 - Cancel your Work
10:26 - Work Constraints

Пікірлер: 32
@bigpiglove
@bigpiglove Жыл бұрын
Thank you for your time helping us to understand this topic!
@bradlara8995
@bradlara8995 8 ай бұрын
Good lord, what a hight quality content. I really appreciate this kind of videos my friend, many thanks
@ayyanchira
@ayyanchira 5 ай бұрын
What an amazing content!!! Thank you so much for explaining this with example!
@ChrisAthanas
@ChrisAthanas Жыл бұрын
Short and sweet
@AndrewDChristie
@AndrewDChristie Жыл бұрын
Thanks!
@aungpyaesone7938
@aungpyaesone7938 Жыл бұрын
Thank u so much
@fernandovallervideos
@fernandovallervideos 4 ай бұрын
Thank you
@mubaraknative
@mubaraknative 9 ай бұрын
Great stefan
@PratikSahu18
@PratikSahu18 Жыл бұрын
I have a periodic work manager which checks local db and send notification based on that. Problem is it works if I run in emulator or install in my device via adb but when I download from playstore the work manager never runs. It runs only when I open the app. Is the device stopping work manager for battery saving? My device was not in powersaving mode and it was at 90% charge.
@denisk3852
@denisk3852 Жыл бұрын
How about reload of device? Does WorkManager need to enqueue again?
@marvin4519
@marvin4519 11 ай бұрын
@marlonlom
@marlonlom 10 ай бұрын
where do the worker must be launched ? activity, application class?
@yakayaka2979
@yakayaka2979 7 ай бұрын
work manager not for battery saving. What is the solution for this?
@nipunshah1373
@nipunshah1373 Жыл бұрын
Does a single unique work can have multiple status (ie WorkInfo) at a given time?
@ChrisAthanas
@ChrisAthanas Жыл бұрын
Easy work request has a individual status
@anamikaraj8949
@anamikaraj8949 Жыл бұрын
Can you please make a video on How to make OTP verification in Kotlin in Android Studio I Love all Your Videos Your Videos are Soo Helpful ThankYou So Muchh....
@jopadjr
@jopadjr Жыл бұрын
72nd...Thanks
@engineerfred9427
@engineerfred9427 6 ай бұрын
hei Stev.. in my project im intending to use two CustomWorkers and i don't know how to handle the work factories for both Workers in the application class. PLease reply its required for my project
@thangamxx5408
@thangamxx5408 5 ай бұрын
I tried but not running on background which run only when app opened not closed completely. Can you please give hand?
@StevdzaSan
@StevdzaSan 5 ай бұрын
If you tried triggering the foreground service from the background then yes, there are restrictions from the os itself.
@thangamxx5408
@thangamxx5408 5 ай бұрын
@@StevdzaSan I didn't tried yet bro, I've read background process documentation which says long running tasks need foreground service not for below 10 mins. This is my requirement, I want to show notification daily interval when app closed it takes only few milliseconds isn't right? And also as you said triggering foreground service also restricted in background. Do you have any solution for this bro! 🙏 I found one use FCM but currently not necessary for me so...
@StevdzaSan
@StevdzaSan 5 ай бұрын
@thangamxx5408 You've misinterpreted the docs. You can't trigger a Foreground service from the background, unless the user manually changes the settings for youe app to allow it.
@thangamxx5408
@thangamxx5408 5 ай бұрын
@@StevdzaSan so you suggest to use foreground service for my requirement isn't right?
@StevdzaSan
@StevdzaSan 5 ай бұрын
@thangamxx5408 Like I said, you need to let your users know that they do need to enable that option manually.
@eunicehirthe
@eunicehirthe Жыл бұрын
Promo-SM 😆
@thecoderui
@thecoderui 4 ай бұрын
Thank you
3 Types of Persistent Work in WorkManager
1:00
Stevdza-San
Рет қаралды 1,9 М.
Execute an important work using WorkManager - Expedited work
14:47
Stevdza-San
Рет қаралды 4,1 М.
Can A Seed Grow In Your Nose? 🤔
00:33
Zack D. Films
Рет қаралды 28 МЛН
Useful gadget for styling hair 🤩💖 #gadgets #hairstyle
00:20
FLIP FLOP Hacks
Рет қаралды 10 МЛН
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 15 МЛН
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 25 МЛН
Everything you need to know about Kotlin 2.0 🟣
11:05
Stevdza-San
Рет қаралды 62 М.
Should You Use Compose State or StateFlow in Your ViewModels?
13:59
Philipp Lackner
Рет қаралды 74 М.
Make Your Code Clean With the SOLID Principles
18:24
Philipp Lackner
Рет қаралды 97 М.
Can A Seed Grow In Your Nose? 🤔
00:33
Zack D. Films
Рет қаралды 28 МЛН