热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

推送通知在Testflight中不起作用-PushNotificationsnotworkinginTestflight

Similartothispost,pushnotificationsworksondevelopment,butdoesnotworkthroughtestflight.

Similar to this post, push notifications works on development, but does not work through testflight. Here are screenshots of my certs:

与此帖子类似,推送通知适用于开发,但不适用于testflight。以下是我的证书的屏幕截图:

  • Certificate of type iOS Distribution enter image description here
  • iOS分发证书
  • App ID. Named (not wildcard). Push notifications enabled for both Development and Distribution - green lights - with all SSL certificates genereated and uploaded enter image description here
  • 应用ID。命名(不是通配符)。为开发和分发启用推送通知 - 绿灯 - 生成并上传所有SSL证书
  • iOS Distribution Provisioning Profile, that usese the above mentioned Certificate and App ID as well as lists Push Notifications among enabled services enter image description here
  • iOS分发配置文件,使用上述证书和应用程序ID以及在已启用的服务中列出推送通知
  • distribution and adhoc signing enter image description here
  • 分发和特别签名

Using Heroku and "node-pushnotifications". It works on development, does not work on testflight. APN_key.p8 and serviceAccountKey.json are in there as well.

使用Heroku和“节点推送”。它适用于开发,不适用于testflight。 APN_key.p8和serviceAccountKey.json也在那里。

I've been working on this all day and been scouring the internet for answers but have yet to find any. Any ideas?

我一整天都在努力,一直在网上搜索答案,但还没找到。有任何想法吗?

2 个解决方案

#1


2  

I was having the same issue with my Firebase project when going from development to testflight production. Changing my APS Environment value to "production" solved this problem for me.

从开发到testflight生产时,我的Firebase项目遇到了同样的问题。将我的APS环境值更改为“生产”为我解决了这个问题。

enter image description here

#2


0  

Issue resolved! we didn't properly set up our node environment in the server (needed NODE_ENV=production)

问题解决了!我们没有在服务器中正确设置我们的节点环境(需要NODE_ENV =生产)


推荐阅读
  • Explore how Matterverse is redefining the metaverse experience, creating immersive and meaningful virtual environments that foster genuine connections and economic opportunities. ... [详细]
  • 本文详细介绍了如何在Linux系统上安装和配置Smokeping,以实现对网络链路质量的实时监控。通过详细的步骤和必要的依赖包安装,确保用户能够顺利完成部署并优化其网络性能监控。 ... [详细]
  • 深入解析Spring Cloud Ribbon负载均衡机制
    本文详细介绍了Spring Cloud中的Ribbon组件如何实现服务调用的负载均衡。通过分析其工作原理、源码结构及配置方式,帮助读者理解Ribbon在分布式系统中的重要作用。 ... [详细]
  • 本文深入探讨了 Java 中的 Serializable 接口,解释了其实现机制、用途及注意事项,帮助开发者更好地理解和使用序列化功能。 ... [详细]
  • 本文详细探讨了JDBC(Java数据库连接)的内部机制,重点分析其作为服务提供者接口(SPI)框架的应用。通过类图和代码示例,展示了JDBC如何注册驱动程序、建立数据库连接以及执行SQL查询的过程。 ... [详细]
  • Explore a common issue encountered when implementing an OAuth 1.0a API, specifically the inability to encode null objects and how to resolve it. ... [详细]
  • 1:有如下一段程序:packagea.b.c;publicclassTest{privatestaticinti0;publicintgetNext(){return ... [详细]
  • 本文介绍了Java并发库中的阻塞队列(BlockingQueue)及其典型应用场景。通过具体实例,展示了如何利用LinkedBlockingQueue实现线程间高效、安全的数据传递,并结合线程池和原子类优化性能。 ... [详细]
  • 1.如何在运行状态查看源代码?查看函数的源代码,我们通常会使用IDE来完成。比如在PyCharm中,你可以Ctrl+鼠标点击进入函数的源代码。那如果没有IDE呢?当我们想使用一个函 ... [详细]
  • 使用 Azure Service Principal 和 Microsoft Graph API 获取 AAD 用户列表
    本文介绍了一段通用代码示例,该代码不仅能够操作 Azure Active Directory (AAD),还可以通过 Azure Service Principal 的授权访问和管理 Azure 订阅资源。Azure 的架构可以分为两个层级:AAD 和 Subscription。 ... [详细]
  • 将Web服务部署到Tomcat
    本文介绍了如何在JDeveloper 12c中创建一个Java项目,并将其打包为Web服务,然后部署到Tomcat服务器。内容涵盖从项目创建、编写Web服务代码、配置相关XML文件到最终的本地部署和验证。 ... [详细]
  • UNP 第9章:主机名与地址转换
    本章探讨了用于在主机名和数值地址之间进行转换的函数,如gethostbyname和gethostbyaddr。此外,还介绍了getservbyname和getservbyport函数,用于在服务器名和端口号之间进行转换。 ... [详细]
  • 360SRC安全应急响应:从漏洞提交到修复的全过程
    本文详细介绍了360SRC平台处理一起关键安全事件的过程,涵盖从漏洞提交、验证、排查到最终修复的各个环节。通过这一案例,展示了360在安全应急响应方面的专业能力和严谨态度。 ... [详细]
  • 掌握远程执行Linux脚本和命令的技巧
    本文将详细介绍如何利用Python的Paramiko库实现远程执行Linux脚本和命令,帮助读者快速掌握这一实用技能。通过具体的示例和详尽的解释,让初学者也能轻松上手。 ... [详细]
  • 深入解析 Apache Shiro 安全框架架构
    本文详细介绍了 Apache Shiro,一个强大且灵活的开源安全框架。Shiro 专注于简化身份验证、授权、会话管理和加密等复杂的安全操作,使开发者能够更轻松地保护应用程序。其核心目标是提供易于使用和理解的API,同时确保高度的安全性和灵活性。 ... [详细]
author-avatar
w3812127
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有