I am trying to implement silent remote condition on CLIENT SIDE.

Basically, I will receive a notification from the server and once I received, I will decide whether to silent the notification depends on some conditions before user device get notified.

So instead of setting content-available on server side, I wondering if there's any way to implement this on client side (iOS Swift code)?

1

There are 1 answers

0
Ben Ong On BEST ANSWER

As far as I know, that cannot be done.

From your server, after you sent the notification to APNS, the next time any codes done by you can be run is when the user response to the notification or launch your app. Apple handles everything in-between.