简体   繁体   中英

Is there dry_run functionality for APN?

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?

You can try using validate_only in FCM v1 API.

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM