I've added Push Notification to my IONIC App using this tutorial: Using Push Notifications with Firebase in an Ionic Angular App.
For Android all works fine, but on IOS notifications are not delivered. In my Firebase console there is an information that notification was sent, but nothing appeared on my IPhone. The app is installed by TestFlight (Internal Tests).
Questions would be:
- How can debug or somehow detect where might be the problem?
- If there is no way to check it, maybe there is a list of common problems with that?
CodePudding user response:
- Check if iOS push notifications permissions are enabled
- Check to see if you receive a push notifications token when you run your app (it doesn't work on simulator, must be real device)
- Register push notifications key on your apple developer account and add the key to your firebase app.
Push notifications on iOS is a bit tricky. This tutorial helped me: https://devdactic.com/push-notifications-ionic-capacitor/
CodePudding user response:
Check on the client that it sends a push token to the server.
Check on the server if any errors are reported when pushes are sent to apple.
Check in the console logs whether and pushes appear on your client device.
Check in the app if any push notifications are received.