Home > OS >  IONIC Push Notification - How to detect why notifications are not delivered on IOS?
IONIC Push Notification - How to detect why notifications are not delivered on IOS?

Time:10-24

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:

  1. How can debug or somehow detect where might be the problem?
  2. If there is no way to check it, maybe there is a list of common problems with that?

CodePudding user response:

  1. Check if iOS push notifications permissions are enabled
  2. 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)
  3. 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.

  • Related