2 years ago
https://dev.to/jringeisen #to-get-started To get started This article will cover implementing push notifications on iOS using Laravel, Ionic-Vue, Capacitor, and Firebase. func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { NotificationCenter.default.post(name:.capacitorDidRegisterForRemoteNotifications, object: deviceToken)} func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) { NotificationCenter.default.post(name:.capacitorDidFailToRegisterForRemoteNotifications, object: error)} Then you'll need to name your key and make sure to select the Apple Push Notifications service (APNs). To upload your APNS key to Firebase, you will need to visit your Firebase Console and go to the project settings.