We are sending Push Notification through the Server.
I wanted to track the event, how many notification were received on iOS and Android.
- Is there any way to get this number with notification info?
- Is there any delegate method or any way in iOS that can confirm that we have received push notification in respective of notification clicked or not?
.
2
Answers
In iOS you can use
To make a call to your server and tell your server that the notification was received.
Another solution would be to use FCM Rest to send the notifications
POST /v1/{parent=projects/*}/messages:send
https://firebase.google.com/docs/reference/fcm/rest
If you include google analytics the Cloud messaging dashboard will have all the info if the user has provided permissions such as IDFA.
In android, there is a method to intercept the FCM notification you can find the implementation in this thread.
Each device notification is received by this callback so you can create some API or some logic to get the acknowledgement back.