2,025 questions
1 vote
1 answer
137 views
How to refresh APNs token automatically after device restore without requiring the user to open the app?
When an iOS device is restored from another device (e.g., Device A → Device B), the old APNs token becomes invalid. The token is only refreshed once the app is opened and ...
0 votes
0 answers
106 views
Firebase Phone Auth on iOS with Silent APNs Doesn't Work - Still Opens Safari (reCAPTCHA)
I’m trying to implement Firebase Phone Authentication on iOS using silent APNs verification, so that users don’t have to deal with the fallback reCAPTCHA flow. Despite following all Firebase and Apple ...
1 vote
0 answers
99 views
Live Activity Dismiss on Termination
I just kill live activity on application Termination with the code below. func applicationWillTerminate(_ application: UIApplication) { let semaphore = DispatchSemaphore(value: 0) Task....
-2 votes
1 answer
504 views
React Native 0.78 iOS build fails with Undefined symbols for architecture x86_64: '_main' after upgrade from 0.68
I'm upgrading a React Native project from 0.68.6 to 0.78.0 and followed all steps on React Native Upgrade Helper. ✅ yarn install and pod install both complete successfully. ❌ But when I try to build ...
1 vote
2 answers
1k views
Enabling DeepLinks in iOS AppDelegate.swift for the latest version of react native
I'm trying to add the necessary code to support deep links in my React Native 0.78.1 app (not using Expo). 0.78.1 created an AppDelegate.swift, not an AppDelegate.m like older versions of RN. ...
0 votes
0 answers
167 views
Flutter app_links not detecting deep links when MobileMessaging is installed on iOS
I am using the app_links package to handle deep links in my Flutter app, and it works perfectly on iOS. However, when I integrate the MobileMessaging SDK and call ...
1 vote
1 answer
200 views
App Crashes with "Thread 1: signal SIGTERM" When Quitting from Dock
I am using a main file and an AppDelegate with the code below. The issue occurs when I try to quit my app from the Dock. When I right-click on the app icon and choose "Quit", it crashes with ...
1 vote
1 answer
217 views
Expo Prebuild for React Native ios
I've noticed a behavior when running expo prebuild in my React Native project using Expo. For the iOS platform, it completely replaces the AppDelegate.mm file and regenerates new icons. However, on ...
1 vote
1 answer
200 views
Xcode: Hide GoogleService-Info.plist when Building IPA iOS
Im new to Flutter and iOS, and Im currently building a Flutter IOS with Firebase Cloud Messaging integrated into the application. I have a GoogleService-Info.plist for two flavors (UAT and Production) ...
3 votes
2 answers
101 views
iOS Flutter App Directly Opens Home Screen After Reinstall
Problem: While developing my Flutter app for iOS, I encountered an issue where, if a user uninstalls the app while logged in, upon reinstalling, the app would skip the login screen and directly ...
0 votes
0 answers
101 views
How to handle the conflicting orientation masks between UIViewController and AppDelegate
I noticed that the Apple official documentation for UIViewController describes handling view rotation as follows: The intersection of the app’s orientation mask and the view controller’s orientation ...
2 votes
1 answer
2k views
How can I retrieve the APNs before the FCM token in Firebase specifically?
Before encountering the error, I was using Xcode which had Firebase installed. At around 12pm today, I began encountering an error that looked like this APNS device token not set before retrieving FCM ...
2 votes
1 answer
100 views
macOS 15: Clicking Dock Icon Opens Two Windows
Prior to macOS 15, when the user closed all windows and then clicked the Dock icon, the app wouldn't reopen a window. To handle this, I added the applicationShouldHandleReopen method in the ...
0 votes
0 answers
88 views
SwiftUI Window not draggable
I made a custom AppDelegate which should remove the window toolbar and add a corner radius of 10px which all works very well hoeever now, you can't drag the window around. I am also very new to AppKit ...
0 votes
0 answers
259 views
Method in Appdelegate applicationWillTerminate not being called using SwiftUI iOS
I have an app which is setting up a VPN connection via Wireguard framework. App is using AppDelegate Lifecycle even if in SwiftUI. I'm using a real device. I need to close my VPN connection started ...