NOTIFICATIONS - Android Fundamentals
ฝัง
- เผยแพร่เมื่อ 7 ก.ค. 2024
- This video will be about showing notifications and taking the user to the activity when he clicks on them.
⭐ Get certificates for your future job
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:
pl-coding.com/premium-courses...
Regular Android tutorials on my Instagram: / philipplackner_official
Checkout my GitHub: github.com/philipplackner
Literally one of the best youtube channel please support him guys for his hardwork
I am in the end of completing this tutorial really i really appreciate your work you did for preparing this tutorial. Now i have the confidence that i can work on my own project.
Thanks brother for doing so
Hello, after this series, what next did you do?
@daniel_tobi I believe, based on his 2023 Android developer roadmap, you should begin with the Jetpack Compose playlist.
You have really great tutorials :) thanks Man for it :)
Awesome video! Your explanatory skills are very good.
Thank you for tutorial! It helped me a lot!
Very well explained..i have been able to follow this successfully using Java
thank you! Always an easy to consume resource!
Thansk for all the work you do, I like your videos and your explanation. One this about thatSDK change, I think it was more of a shortcut it didnt correct the main problem. It will be better if next time you show the real solution IMHO. Thanks again for all the effort you offer to the comunity big up
This guy will touch million subscribers very soon. Mark my words
🤡
thanks, great tutorial
Thanks for this, I want my notification to be on top float on other apps. That is when using other apps and you get a notification it should display on top of that app with a circular icon...same as fb Messenger did
Hi, many thanks for the demo
Is there another demo with some menu (like WAZE = Close app )
Hey! Great video as always! But I have question
if I want to remove notification when I close the app, what's the best place to do it?
I have a service that sends the notification.
Any help is appreciated :)
Thank you!
hi, what if I want my app to return to an already running activity when you click the notification? I am building a timer app the sends the notification when the timer is started and I want the user to return to the timer page when they click the notification. But here my app opens a new timer activity page
.
So awesome!
great , but i have seen images appearing in notification as well , have you covered that as well ?
Make a playlist in firebase ...also plz make vdo in Work manager and FCM
thanks for the tutorial it is just amazing, and when I open my app by notification it still appears on the top, how we can solve it
@Penta Rahul Krishna nice guy, you save my day
Perfect tutorial, i would like to show popup notification up, how we can solve it?
Hi Phillip, i want to ask, if the notification was showing before we open the app when we click the notification didn't go to pending intent target. But it will restart the app. How to solve it?
great video!
Thanks!
Epic!
Hey , i want first say you thank for thats great tutorial. Have my question for you , how do i can send notification another or target user ? please give me solition or answer to find it.
Is it possible to listen to action when I try to drag up and down of notification bar,for example enabling Bluetooth or location.I need to listen that into my fragment
The best ever
hi, what if i have to keep minSDK to 15, how will I counter the TaskStackBuilder API required 16?
Super verständlich erklärt. Aber bis hier ist es ja nur Spielerei. App öffnen und sich selbst mit einer Nachricht informieren. Gibt es ein Video oder Empfehlungen zu Resourcen, wie:
-Eine zweite Notification ins Spiel kommen kann?
-Die Notification ohne Klick auf Button ausgeführt werden kann aus dem Hintergrund?
-Die Notification täglich gescheduled werden kann?
Gruß
Für notifications im Hintergrund, zb wenn eine Nachricht empfangen wird, lies dich mal in Push notifications ein. Hier ein Video dazu: th-cam.com/video/HoFWPPv1ih8/w-d-xo.html
Für scheduling, guck dir AlarmManager oder WorkManager an. Hier ein Video zu WorkManager: th-cam.com/video/Psc2xyutE2U/w-d-xo.html
nice!!
What if the Button, btnNotification, is inside a fragment of MainActivity instead of directly a part of MainActivity like in this video? How do you access fragments internals from a parent activity? Callbacks? Doing the logic in onStart instead of onCreate?
Then you could also just show the notification from within the fragment, it doesn't need to be shown from within the activity
Und was ist mit dem Handling vor Oreo? Die else Schleife existiert nicht? Wäre auch toll
is it possible to do this in a fragment?
asking to implement permission so that user can reject or accept the notification
how can we do that, will I need to follow permissions tutorial
click on red bulb kind of suggestions then click add permission
After clicking on the notification it wasn't supposed to disappear??
Hey! Thanks for the video. But I have question.
When I write the intent and pendingIntent, the application closes itself. How can I fix that problem?
Try to change PENDINGINTENT.FLAG_UPDATE_CURRENT to Mutable
@@thiagogomes9043 🤠 Thanks
This was kinda hard to understand with the taskstackbuilder . I still don't understand it fully.
Brother here --->lightColor = color. suggestions are Not getting ....i have Added Material dependency also
Hello, I like your tutorials, here and on Instagram, but is it possible to have Java tutorials ?
Thank you! Sorry, but I don't do Java tutorials because Java is outdated for Android, almost nobody uses it anymore for that
@@PhilippLackner oh, too bad, thanks anyway
how can we do it with fcm ??
How to send notification from any app to other app
Bro, consider that there is a third party web service and it updated every hour, and I want that when this web service updated ,immediately user notified with notification. Something like WhatsApp or telegram application. can we use web socket with third party web services? Or is there any other solution for that? thanks
WhatsApp and Telegram usually implement such behaviour with push notifications (e.g. FCM) here, I have a video about how to implement that behaviour: th-cam.com/video/HoFWPPv1ih8/w-d-xo.html
@@PhilippLackner i am using fcm and passing message to popup and it is working good in android studio but not working when i make apk file and install on mobile can you provide solution of this problem?
Also, if anyone can tell me how to travel to the specific fragment instead of the Activity when the user clicks the notification, that would be great
I also want to know this...
Just add an intent extra, the key of which should uniquely identify the fragments.
In the Activity, handle the intent and replace the fragment container with the right fragment based on the intent extra.
val replyIntent = Intent(context, YourReplyService::class.java)
val replyPendingIntent = PendingIntent.getService(context, 0, replyIntent, 0)
val action = NotificationCompat.Action.Builder(
R.drawable.ic_reply, "Reply", replyPendingIntent
).build()
builder.addAction(action)
Notification isn't disappearing after click ??
When I pop notification, and close the app. The notification will be gone. Dose anyone know the reasons?
getsystemservice(context.Notification_service) type mismatching Req Context Found String how can i handle it
well you passed a string where you should pass the context. Check again, you probably dont have it like in the video
Did you ever find the reason for this? same issue.
I am here May 2022
Why is this so hard?
Why cant it be easier...
its android, baby))
How to receive notifications from api in real life instead of click listener on a button.
I love you
Can we do this instead of TaskStackBuilder ?
val contentPendingIntent = PendingIntent.getActivity(
applicationContext,
NOTIFICATION_ID,
contentIntent,
PendingIntent.FLAG_UPDATE_CURRENT
)
yes