简体   繁体   English

创建配置文件以测试推送通知

[英]Create provisioning profile for testing push notifications

I'd like to test my push notifications feature on iOS. 我想在iOS上测试我的推送通知功能。 I'm working with DevExtreme, a framework based on phonegap. 我正在使用DevExtreme,这是一个基于phonegap的框架。

Following what I made in the past, I made the following steps: 遵循我过去所做的事情,我执行了以下步骤:

  1. Create the certificate. 创建证书。 Here, I chose the "Apple Push Notification service SSL (Sandbox)" option. 在这里,我选择了“ Apple Push Notification service SSL(沙盒)”选项。 First question: is it right? 第一个问题:对吗? I will use FCM. 我将使用FCM。
  2. Create the APP id, enabling push notifications 创建APP ID,启用推送通知
  3. I need to create a template of my app, so, I need also the Provisioning Profiles. 我需要创建我的应用程序的模板,因此,我还需要配置文件。 I try to create it selecting "iOS App Development" when creating it. 我尝试在创建它时选择“ iOS App Development”来创建它。 Then, I can't see the created certficate. 然后,我看不到创建的证书。

What I tried to fix the point 3 is create another certficate selecting "iOS App Development" using the same certSigningRequest as point 1. I created a provisioning profile lined to this certificate. 我试图解决第3点的问题是,使用与第1点相同的certSigningRequest选择“ iOS App Development”来创建另一个证书。我创建了与此证书对应的配置文件。 When building the template, I tried to use this file as provisioning and the certificate of point 1 as certificate, but I'm getting the error "The default keychain doesn't have an identity matching". 构建模板时,我尝试使用此文件进行配置,将点1的证书用作证书,但出现错误“默认钥匙串没有身份匹配”。

So, now I'm stuck here, because I don't know how can I test my push notifications feature on an iPhone device. 所以,现在我被困在这里,因为我不知道如何在iPhone设备上测试我的推送通知功能。 Any ideas? 有任何想法吗?

UPDATE: 更新:

Now,I'm trying to do the following: create the APN certificate and use it only for the upload to FCM. 现在,我尝试执行以下操作:创建APN证书,并将其仅用于上载到FCM。 Then, create the certificate and profile for the as usual, selecting "iOS App Development" when creating the certificate and link it to provisioning profile. 然后,照常创建证书和配置文件,在创建证书时选择“ iOS App Development”,并将其链接到配置文件。

Is my idea right? 我的想法对吗?

UPDATE : Summarized all the steps here: https://programmingistheway.wordpress.com/2017/07/19/devextremephonegap-how-to-manage-push-notifications-with-fcm/ 更新 :这里总结了所有步骤: https : //programmingistheway.wordpress.com/2017/07/19/devextremephonegap-how-to-manage-push-notifications-with-fcm/

It's because you are mixing up the 'Distribution Provisoning Profile' with the 'Development Provisioning Profile'. 这是因为您正在将“分发批准配置文件”与“开发配置文件”混合在一起。

Remove old provisioning profiles from your keychain and follow these steps . 从钥匙串中删除旧的配置文件,然后执行以下步骤

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

相关问题 尝试使用推送通知创建Apple供应配置文件 - Trying to create Apple provisioning profile with push notifications 更新推送通知的配置文件 - update Provisioning Profile for push notifications Apple Push Notifications + TestFlight + Enterprise通配符配置文件 - Apple Push Notifications + TestFlight + Enterprise wildcard provisioning profile 如果Xcode Server使用iOS Team provisioning配置文件签名,则不会收到推送通知 - Push Notifications not received if Xcode Server signs with iOS Team provisioning profile iOS 本机应用程序 - 需要具有推送通知功能的配置文件 - iOS Native Application - Requires a provisioning profile with the Push Notifications feature 推送通知在配置文件中处于活动状态需要多长时间? - How long before push notifications are active in provisioning profile? 具有适当权利的预配配置文件可防止推送通知注册 - Provisioning Profile with Proper Entitlements Prevents Push Notifications Registration 为Parse推送通知添加iOS配置文件时,“没有可用的证书” - “No Certificates are available” when adding iOS provisioning profile for Parse Push Notifications 没有收到Apple推送通知/可能有配置文件问题? - Not receiving Apple push notifications / Possible provisioning profile issue? 推送通知配置文件 - Push Notification Provisioning Profile
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM