简体   繁体   English

APN 是否有试运行功能?

[英]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.在为 android 和 ios 实现通知发送功能时,我遇到了需要试运行的问题。

For FCM, this solved the problem but the issue still remains for APN.对于 FCM, 解决了问题,但问题仍然存在于 APN。 Is there the dry run functionality for APN? APN 是否有试运行功能?

You can try using validate_only in FCM v1 API.您可以尝试在 FCM v1 API 中使用validate_only

clevertap library solved the issue. clevertap 库解决了这个问题。

The Content Available option with below value initialized did the work for me.初始化为以下值的可用内容选项为我完成了工作。

  • Key: content-available关键:内容可用
  • Value: 1值: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.假设您包含值为 1 的 content-available 键,以向您的用户发送静默通知。 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 .如需更多信息,请单击此处

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 FCM 中是否有 dry_run 功能? - Is there dry_run functionality in FCM? BigQuery:有没有办法在不运行 SELECT 语句的情况下获取它的模式 (dry_run)? - BigQuery: Is there a way to get the schema of a SELECT statement without running it (dry_run)? 通过试运行 API 调用进行 AWS IAM 策略验证 - AWS IAM Policy validation through dry-run API calls 如何仅有时在 Azure function 中运行功能 - How to run functionality only sometimes in an Azure function 如何在 Terraform 中 DRY 重复块列表 - How to DRY repeating block lists in Terraform iOS:APNS 证书在 30 天后过期 - 这与 Firebase 消息中的 APN 密钥有何关系? - iOS: APNS Certificate expires in 30 days - how is this related to APN key in Firebase messaging? Clearscript Javascript“需要”功能 - Clearscript Javascript 'require' functionality 实时数据库更新或创建功能 - Realtime database update or create functionality SendGrid 功能与分发列表 email id - SendGrid functionality with distribution list email id 模拟测试 S3 上传的 python 功能 - Mock testing a python functionality for S3 Upload
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM