Close Menu
  • Home
  • AI
  • Big Data
  • Cloud Computing
  • iOS Development
  • IoT
  • IT/ Cybersecurity
  • Tech
    • Nanotechnology
    • Green Technology
    • Apple
    • Software Development
    • Software Engineering

Subscribe to Updates

Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

    What's Hot

    Setting Up a Google Colab AI-Assisted Coding Environment That Actually Works

    March 11, 2026

    The economics of enterprise AI: What the Forrester TEI study reveals about Microsoft Foundry

    March 11, 2026

    The search for new bosons beyond Higgs – Physics World

    March 11, 2026
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram
    Big Tee Tech Hub
    • Home
    • AI
    • Big Data
    • Cloud Computing
    • iOS Development
    • IoT
    • IT/ Cybersecurity
    • Tech
      • Nanotechnology
      • Green Technology
      • Apple
      • Software Development
      • Software Engineering
    Big Tee Tech Hub
    Home»iOS Development»ios – Remote notification tap not handled when app is killed
    iOS Development

    ios – Remote notification tap not handled when app is killed

    big tee tech hubBy big tee tech hubNovember 24, 2025042 Mins Read
    Share Facebook Twitter Pinterest Copy Link LinkedIn Tumblr Email Telegram WhatsApp
    Follow Us
    Google News Flipboard
    ios – Remote notification tap not handled when app is killed
    Share
    Facebook Twitter LinkedIn Pinterest Email Copy Link


    I’m running into a problem with remote push notifications on iOS.

    When the app is in background or inactive, tapping a notification correctly triggers:

    userNotificationCenter(_:didReceive:withCompletionHandler:)

    …but when the app is killed, tapping the notification launches the app, yet no delegate method fires and my tracking event never gets sent.

    I’m using:

    • SwiftUI @ main App

    • @ UIApplicationDelegateAdaptor for the AppDelegate

    • UNUserNotificationCenter delegate set manually

    • FirebaseAppDelegateProxy disabled

    • No SceneDelegate

    I’ve tried:

    • Checking launchOptions?[.remoteNotification] (not fired on iOS 15+)

    • Adding application(_:continue:restorationHandler:)

    • Preventing banners during launch (suggestion by chatGPT but made no difference)

    Foreground + background tap handling works perfectly — only killed → tap → launch fails to deliver the payload. hell i can’t even see logging for that flow.

    Some code i have:

    class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate {
    
        func application(
            _ application: UIApplication,
            didFinishLaunchingWithOptions launchOptions:[UIApplication.LaunchOptionsKey : Any]?
        ) -> Bool {
            
            UNUserNotificationCenter.current().delegate = self
            return true
        }
    
    func userNotificationCenter(
            _ center: UNUserNotificationCenter,
            didReceive response: UNNotificationResponse,
            withCompletionHandler completionHandler: @escaping () -> Void
        ) {
            handleNotificationTap(response.notification.request.content.userInfo)
            completionHandler()
        }
    
        public func handleNotificationTap(_ userInfo: [AnyHashable : Any]) {   
            let id = userInfo["notification_id"]
            let notificationId = (id as? Int).map(String.init) ?? (id as? String)
    
            if let finalId = notificationId {
                Analytics.track("notification_opened", parameters: ["notification_id": finalId])
            } else {
                Analytics.track(
                    "notificationTappedWithoutID",
                    parameters: ["payload": userInfo]
                )
            }
        }
    

    As you can see there should always be some event send, but currently i receive none. i also tried didReceiveRemoteNotification but that didn’t work either.

    Any help would be appreciated. been looking in to this for a few nights now.



    Source link

    app handled iOS killed notification Remote tap
    Follow on Google News Follow on Flipboard
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Copy Link
    tonirufai
    big tee tech hub
    • Website

    Related Posts

    uikit – Why the title doesn’t follow the navigation inline state in iOS 26

    March 11, 2026

    ios – OS emoji keyboard causes UI freeze in chat TextField Flutter

    March 10, 2026

    Future Updates | Cocoanetics

    March 9, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    Setting Up a Google Colab AI-Assisted Coding Environment That Actually Works

    March 11, 2026

    The economics of enterprise AI: What the Forrester TEI study reveals about Microsoft Foundry

    March 11, 2026

    The search for new bosons beyond Higgs – Physics World

    March 11, 2026

    Amazon is linking site hiccups to AI efforts

    March 11, 2026
    About Us
    About Us

    Welcome To big tee tech hub. Big tee tech hub is a Professional seo tools Platform. Here we will provide you only interesting content, which you will like very much. We’re dedicated to providing you the best of seo tools, with a focus on dependability and tools. We’re working to turn our passion for seo tools into a booming online website. We hope you enjoy our seo tools as much as we enjoy offering them to you.

    Don't Miss!

    Setting Up a Google Colab AI-Assisted Coding Environment That Actually Works

    March 11, 2026

    The economics of enterprise AI: What the Forrester TEI study reveals about Microsoft Foundry

    March 11, 2026

    Subscribe to Updates

    Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

      • About Us
      • Contact Us
      • Disclaimer
      • Privacy Policy
      • Terms and Conditions
      © 2026 bigteetechhub.All Right Reserved

      Type above and press Enter to search. Press Esc to cancel.