I think it's important to note that to use these methods it is needed to use a permission on the manifest that Google greatly restricts apps to use on the Google play store. You will need to provide a good reason for Google to use this permission on your app, and be allowed to publish the app on the play store.
@joshuayoo903111 ай бұрын
Hi. In your code, if the build version is >= S and schedule_exact_alarm permission is not granted, it still calls setExact method and thus throws an exception. I think you should check if the app has exact_alarm_permission within the if statement which checks build version is >= S.
@abdelrahmankhaled7575 Жыл бұрын
Great Note ! , Hope to continue on this type of videos !
@ComradeKierkegaard Жыл бұрын
Thank you for the video!
@waheed_akhtar Жыл бұрын
A very good point to remember when testing such features.
@fig7047 Жыл бұрын
One thing I find kind of insane with Android is how fiddly some things are. Setting alarms is one of them. You have described one of the issues, but there is more. Not only do you have to worry about things like doze mode, but you also have to worry about the security requirements (permissions) that are needed. With the Alarm manager API, this has changed several times over the years. Consequently, another thing you need to test with is different versions of Android! Especially, new versions when they come out. Your functionality might quietly stop working because Android have changed something, or, if you are really unlucky, your app starts throwing exceptions that it never did before.
@mohancena8970 Жыл бұрын
Nice info thanks philipp 😀
@malteharms8 Жыл бұрын
Good Point 👍🏾 thanks. Could you make a Tutorial about the Setup of a (wss) Secure Websocket Server in ktor? I would be nice to know how self-signed certificates on android devices are trusted.
@Berryss Жыл бұрын
He has a course on it as far as i know (Doodlekong)
@redaelmadini Жыл бұрын
What to do for WorkManager?
@nurtorekelesov4286 Жыл бұрын
thanks, great video! , i actually met this problem in real app, when i was making prayer scheduler app, i had the same issue with doze mode)
@marek-guran Жыл бұрын
For people not wanting to spend time to find out what is it: - Doze mode
@SerarEstaifan Жыл бұрын
Thanks for sharing this great topic!! If alarm manager was scheduled let's say every 5 minutes, does that mean the device would never go to doze mode? Or the device is still in doze mode, but allow this app to run?
@im_swapnil_musale Жыл бұрын
You can't set work manager to do periodic request for every 5 min. The difference should be 15 min. And setExactWhileIdeal is for trigger alarm even when device in doze mode
@JazzyJesterTechPing Жыл бұрын
Thanks for the video, but sorry to inform you that both alarm manager parts that you separate with if statement, are both the same, no difference, so you don't need the if statement...
@PhilippLackner Жыл бұрын
But canScheduleAlarms should be checked on API level >= S
@JazzyJesterTechPing Жыл бұрын
So you need only the check, the rest of the code can be extracted to the same method.@@PhilippLackner
@morsherfenix8321 Жыл бұрын
thank you
@rahulbiswas7046 Жыл бұрын
Hii... I have a question, In 2024 learn Native Android App development is worth ???
@m77mo65 Жыл бұрын
If not kmm ( so you have to have a Mac) then no. I suggest flutter or react native. Way easier and more jobs opportunities
@annguyenhoang3589 Жыл бұрын
❤love it
@furyop2640 Жыл бұрын
i checked your courses & its saying 99,00 euros. I am confused is it 99euros or 9900 euros?? It will be helpful if you can clear it
@PhilippLackner Жыл бұрын
99 euros :) The comma in Europe is the period in the US
@proandroiddevir Жыл бұрын
Thanks for this tutorial
@subhradeepbera2774 Жыл бұрын
Hey @PhilippLackner my google play account was terminated abruptly. Can you or anyone help to reinstate my account?