Handle push tokens
Register for push notifications
Register APNs and FCM
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// ...
// Use Firebase library to configure APIs
FirebaseApp.configure()
// Register user notification
let settings: UIUserNotificationSettings = UIUserNotificationSettings(types: [.alert, .badge, .sound], categories: nil)
application.registerUserNotificationSettings(settings)
// Firebase register
Messaging.messaging().delegate = self
// Register for Remote Notification
application.registerForRemoteNotifications()
return true
}Update the push token in NFC Wallet
Last updated
Was this helpful?