简体   繁体   English

iOS推送通知自签名证书

[英]iOS Push Notification self signed certificate

I made project using Cordova and I am trying to port it to other platforms. 我使用Cordova制作了项目,并试图将其移植到其他平台。 I already successfully build everything for android. 我已经成功地为Android构建了一切。 But I have problem with building it for iOS (cordova build ios --release --device). 但是我在为iOS构建它时遇到了问题(cordova build ios --release --device)。 My project include Firebase plugin which is used for push notifications. 我的项目包括用于推送通知的Firebase插件。 I am trying to sign this application with self-signed certificate (app will be used internally, no app store). 我正在尝试使用自签名证书对此应用程序进行签名(应用程序将在内部使用,没有应用程序商店)。 But when I try to sign this application, I got an error as, 但是,当我尝试签署此应用程序时,出现错误,

provisioning profile requires push notification permission. 供应配置文件需要推送通知权限。

Is there any way to avoid apple developer account (and 100$ ann. fee) and use self-signed certificates? 有什么方法可以避免使用Apple开发人员帐户(和100美元的年费)并使用自签名证书?

I tried creating a manual provisioning profile, no success. 我尝试创建手动配置文件,但没有成功。 I researched a lot, but this subject is not really covered. 我做了很多研究,但这个主题并未真正涵盖。

In general, the answer is NO. 通常,答案是否定的。

Firebase using APNs to send push notifications which is Apple service :) 使用APN的Firebase发送推送通知,这是Apple服务:)

Maybe you can create an app with some Message Queue to receive messages like notifications based on sockets and display local notifications. 也许您可以使用一些消息队列创建一个应用程序,以接收消息(例如基于套接字的通知)并显示本地通知。 But still, you will need developer account if you want to distribute the app to more devices. 但是,如果要将应用程序分发到更多设备,则需要开发者帐户。 I think it is better just to pay 100$. 我认为最好只付100美元。

Thanks guys, really appreciate that. 谢谢大家,非常感谢。 I tried everything but it looks like that you must pay for that. 我尝试了一切,但看起来您必须为此付费。

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

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