I am receiving the token, but when I send a notification from the Firebase Console, nothing happens on my device, no matter if the app is backgrounded or not. At the same time, my Android app receives the notification.
I followed this guide:
https://firebase.google.com/docs/cloud-messaging/ios/client
and just to be sure, I also copy-pasted the sample code at
Testing this function:
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
print("----- Successfully registered for notifications!")
}
works, and the didFailToRegisterForRemoteNotificationsWithError function does not get called.
What can I do now?