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

ความคิดเห็น • 75

  • @manishpanwar2517
    @manishpanwar2517 3 ปีที่แล้ว +3

    Literally one of the best youtube channel please support him guys for his hardwork

  • @ConnectBhawna
    @ConnectBhawna 2 ปีที่แล้ว +13

    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

    • @DanielTobi00
      @DanielTobi00 ปีที่แล้ว

      Hello, after this series, what next did you do?

    • @a-zlearning6259
      @a-zlearning6259 6 หลายเดือนก่อน

      @daniel_tobi I believe, based on his 2023 Android developer roadmap, you should begin with the Jetpack Compose playlist.

  • @tomaszb9668
    @tomaszb9668 3 ปีที่แล้ว +1

    You have really great tutorials :) thanks Man for it :)

  • @d.ndriotis9209
    @d.ndriotis9209 ปีที่แล้ว

    Awesome video! Your explanatory skills are very good.

  • @nicolegraves9145
    @nicolegraves9145 2 ปีที่แล้ว

    Thank you for tutorial! It helped me a lot!

  • @allanandliftedhands2669
    @allanandliftedhands2669 3 ปีที่แล้ว

    Very well explained..i have been able to follow this successfully using Java

  • @writerchris2j1984
    @writerchris2j1984 2 ปีที่แล้ว

    thank you! Always an easy to consume resource!

  • @wailhamman6317
    @wailhamman6317 3 ปีที่แล้ว

    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

  • @srivastav3684
    @srivastav3684 3 ปีที่แล้ว +1

    This guy will touch million subscribers very soon. Mark my words

  • @yusufaydn6927
    @yusufaydn6927 2 ปีที่แล้ว

    thanks, great tutorial

  • @Ispossible1
    @Ispossible1 3 ปีที่แล้ว

    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

  • @guy1407
    @guy1407 4 ปีที่แล้ว

    Hi, many thanks for the demo
    Is there another demo with some menu (like WAZE = Close app )

  • @_AverageGuy
    @_AverageGuy 3 ปีที่แล้ว

    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 :)

  • @st.libertos
    @st.libertos 2 ปีที่แล้ว

    Thank you!

  • @TNVR69
    @TNVR69 3 ปีที่แล้ว +1

    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
    .

  • @salmakd3586
    @salmakd3586 ปีที่แล้ว

    So awesome!

  • @muneeburrehman6786
    @muneeburrehman6786 3 ปีที่แล้ว

    great , but i have seen images appearing in notification as well , have you covered that as well ?

  • @millenniumchowdhury6395
    @millenniumchowdhury6395 2 ปีที่แล้ว

    Make a playlist in firebase ...also plz make vdo in Work manager and FCM

  • @anorov_hasan
    @anorov_hasan 4 ปีที่แล้ว +10

    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

    • @trunghieu5386
      @trunghieu5386 3 ปีที่แล้ว +3

      @Penta Rahul Krishna nice guy, you save my day

  • @trunghieu5386
    @trunghieu5386 3 ปีที่แล้ว

    Perfect tutorial, i would like to show popup notification up, how we can solve it?

  • @nicolasmanurung
    @nicolasmanurung 2 ปีที่แล้ว

    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?

  • @fahrican9708
    @fahrican9708 3 ปีที่แล้ว

    great video!

  • @shreyashchoudhary7413
    @shreyashchoudhary7413 3 ปีที่แล้ว

    Epic!

  • @syndromsyndrom6546
    @syndromsyndrom6546 2 ปีที่แล้ว

    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.

  • @suboshk777
    @suboshk777 3 หลายเดือนก่อน

    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

  • @kareemkamal6185
    @kareemkamal6185 2 ปีที่แล้ว

    The best ever

  • @mharis404
    @mharis404 ปีที่แล้ว

    hi, what if i have to keep minSDK to 15, how will I counter the TaskStackBuilder API required 16?

  • @petermeyer4273
    @petermeyer4273 2 ปีที่แล้ว

    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ß

    • @PhilippLackner
      @PhilippLackner  2 ปีที่แล้ว

      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

  • @aarifalisaifi7743
    @aarifalisaifi7743 ปีที่แล้ว

    nice!!

  • @_jsonV
    @_jsonV 4 ปีที่แล้ว

    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?

    • @PhilippLackner
      @PhilippLackner  4 ปีที่แล้ว +2

      Then you could also just show the notification from within the fragment, it doesn't need to be shown from within the activity

  • @petermeyer4273
    @petermeyer4273 2 ปีที่แล้ว

    Und was ist mit dem Handling vor Oreo? Die else Schleife existiert nicht? Wäre auch toll

  • @phumlamabuza3453
    @phumlamabuza3453 ปีที่แล้ว

    is it possible to do this in a fragment?

  • @htgsniper8458
    @htgsniper8458 ปีที่แล้ว +1

    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

    • @kranjani3585
      @kranjani3585 2 หลายเดือนก่อน

      click on red bulb kind of suggestions then click add permission

  • @miltonpimentel3769
    @miltonpimentel3769 2 ปีที่แล้ว

    After clicking on the notification it wasn't supposed to disappear??

  • @erendenizkaya3155
    @erendenizkaya3155 2 ปีที่แล้ว +2

    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?

    • @thiagogomes9043
      @thiagogomes9043 2 ปีที่แล้ว +2

      Try to change PENDINGINTENT.FLAG_UPDATE_CURRENT to Mutable

    • @kesavguru415
      @kesavguru415 ปีที่แล้ว +2

      @@thiagogomes9043 🤠 Thanks

  • @TheImaginativeSachin
    @TheImaginativeSachin ปีที่แล้ว

    This was kinda hard to understand with the taskstackbuilder . I still don't understand it fully.

  • @akhileshrupaji5936
    @akhileshrupaji5936 4 ปีที่แล้ว

    Brother here --->lightColor = color. suggestions are Not getting ....i have Added Material dependency also

  • @Jojoyel
    @Jojoyel 4 ปีที่แล้ว +1

    Hello, I like your tutorials, here and on Instagram, but is it possible to have Java tutorials ?

    • @PhilippLackner
      @PhilippLackner  4 ปีที่แล้ว

      Thank you! Sorry, but I don't do Java tutorials because Java is outdated for Android, almost nobody uses it anymore for that

    • @Jojoyel
      @Jojoyel 4 ปีที่แล้ว

      @@PhilippLackner oh, too bad, thanks anyway

  • @arslanabbasi218
    @arslanabbasi218 3 ปีที่แล้ว

    how can we do it with fcm ??

  • @nerdsplus5499
    @nerdsplus5499 2 ปีที่แล้ว

    How to send notification from any app to other app

  • @noshingh521
    @noshingh521 4 ปีที่แล้ว

    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

    • @PhilippLackner
      @PhilippLackner  4 ปีที่แล้ว

      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

    • @arslanabbasi218
      @arslanabbasi218 3 ปีที่แล้ว

      @@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?

  • @aldredcresp6312
    @aldredcresp6312 2 ปีที่แล้ว +1

    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

    • @siddiquahanjum1347
      @siddiquahanjum1347 2 ปีที่แล้ว

      I also want to know this...

    • @studyonline3236
      @studyonline3236 9 หลายเดือนก่อน +1

      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.

    • @studyonline3236
      @studyonline3236 9 หลายเดือนก่อน +1

      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)

  • @vj711
    @vj711 2 ปีที่แล้ว

    Notification isn't disappearing after click ??

  • @yisun9573
    @yisun9573 ปีที่แล้ว

    When I pop notification, and close the app. The notification will be gone. Dose anyone know the reasons?

  • @mohameddarwish1347
    @mohameddarwish1347 4 ปีที่แล้ว

    getsystemservice(context.Notification_service) type mismatching Req Context Found String how can i handle it

    • @PhilippLackner
      @PhilippLackner  4 ปีที่แล้ว

      well you passed a string where you should pass the context. Check again, you probably dont have it like in the video

    • @mikecennamocomedy
      @mikecennamocomedy 2 ปีที่แล้ว

      Did you ever find the reason for this? same issue.

  • @jaygarzon6709
    @jaygarzon6709 2 ปีที่แล้ว

    I am here May 2022

  • @clark4813
    @clark4813 3 ปีที่แล้ว +2

    Why is this so hard?
    Why cant it be easier...

  • @gamesforu6619
    @gamesforu6619 3 ปีที่แล้ว

    How to receive notifications from api in real life instead of click listener on a button.

  • @introvertsdiary
    @introvertsdiary 3 ปีที่แล้ว

    I love you

  • @asimlatif360
    @asimlatif360 2 ปีที่แล้ว

    Can we do this instead of TaskStackBuilder ?
    val contentPendingIntent = PendingIntent.getActivity(
    applicationContext,
    NOTIFICATION_ID,
    contentIntent,
    PendingIntent.FLAG_UPDATE_CURRENT
    )