How to Add Local Push Notifications to Your iOS App with Swift

Поделиться
HTML-код
  • Опубликовано: 7 сен 2024
  • 📲 Download The App "Better Workout"!
    apps.apple.com...
    🟪 Twitch
    / martinlasek
    📱 Instagram
    / martin_lasek
    🐥 Twitter
    / martinlasek
    📖 Medium
    / martinlasek
    ___
    In this Swift tutorial, I'll show you how to create local push notifications that engage your users and help them stay on top of important events in your app. My step-by-step instructions and sample code make it easy for beginners and experienced developers alike to add push notifications to their app. By the end of this tutorial, you'll be able to implement local push notifications in your own app and make it more interactive and user-friendly. Don't miss out on this essential skill!
    Let me know if you have any questions! ✌🏻😊

Комментарии • 23

  • @manfrommars
    @manfrommars 15 дней назад

    Million thanks, very simple and clear 👍👍👍

  • @maisamilena
    @maisamilena Год назад +1

    Strait to the point, nice!

  • @awepilgrim
    @awepilgrim 11 месяцев назад +1

    Great tutorial, thanks!

  • @thenoahr
    @thenoahr 9 месяцев назад

    Can you make a video on how to do it on the Apple CloudKit (APNs)

  • @user-xc7my7by4m
    @user-xc7my7by4m 7 месяцев назад +1

    Amazing tutorial, man 💪

    • @martinlasek
      @martinlasek  7 месяцев назад

      Thanks! Glad you liked it 👊🏻✨

  • @Ajay-.
    @Ajay-. Год назад +1

    "Swift by Martin" is back ❤

  • @aliDevJourney
    @aliDevJourney 4 месяца назад +1

    First of all, I want to thank you for that useful tutorial. But I have a one specific question about local notifications. How can i navigate to the specific view when user tapped the notification. In my case my struct includes four tabbar buttons and for example when notification came I want to start the from the second tabbar buttons view.

    • @GeorgeHafiz
      @GeorgeHafiz 2 месяца назад

      i think with UNMutableNotificationContent.defaultActionURL

  • @jiongrong
    @jiongrong 2 месяца назад

    Thanks for good video appreciate

  • @martinlasek
    @martinlasek  Год назад

    Let me know if you are missing something regarding local push notifications or if you have any additional questions! Happy coding ✌🏻🙂!

    • @kasparlaurenz
      @kasparlaurenz Год назад

      does this also apply to a watch app?^^

    • @tomameslee
      @tomameslee Год назад

      Are you able to please show how to have alternative body text so we can send different text each day?

    • @s.tunahanustuntepe2966
      @s.tunahanustuntepe2966 9 месяцев назад

      I can't get notifications in the simulator, I can only get them when I connect my own phone, how can I get them in the simulator?

  • @retdude
    @retdude 4 месяца назад

    Nice tutorial, I was wondering if you could describe how this works in the XCode 15 setup without storyboard. I do not have a ViewController in my app and I was wondering how to get this working in my program architecture.

    • @definitlyarealperson7041
      @definitlyarealperson7041 2 месяца назад

      I had the same problem.
      I basically just executed the checkForPermission function inside the onAppear modifier of the ContentView:
      var body: some Scene {
      WindowGroup {
      ContentView()
      .onAppear() {
      self.checkForPermission()
      }
      }
      }

  • @thiruselvamb4350
    @thiruselvamb4350 Год назад

    I am a conversation app which when we receive the message from the opposite person it does not sound and notified in the notification center...... how to do that

  • @hardenedWarrior
    @hardenedWarrior Год назад +1

    Will it work even when user will close the app?

  • @user-zd3hi7tq8p
    @user-zd3hi7tq8p Год назад +1

    Cool video👍thanks

  • @krsjofficial
    @krsjofficial Год назад +1

    Nice one

  • @drdax
    @drdax 4 месяца назад

    excellent tutorial, thanks!