Is there dry_run functionality for APN?

192 views Asked by At

While implementing notification sending functionality for android and ios, I ran into the issue where dry run is needed.

For FCM, this solved the problem but the issue still remains for APN. Is there the dry run functionality for APN?

2

There are 2 answers

0
Prabin Ojha On BEST ANSWER

clevertap library solved the issue.

The Content Available option with below value initialized did the work for me.

  • Key: content-available
  • Value: 1

The official documentation states as below:

Suppose you include the content-available key with a value of 1 to send out a silent notification to your users. In that case, it will not alert the user in any way (update badge count/play a sound/show a notification), but it will wake your app up in the background, allowing you to fetch new content and prepare it for the next time the user opens your app.

For more information, click here.

1
Yuji Bry On

You can try using validate_only in FCM v1 API.