简体   繁体   English

更改Xcode 8中的包标识符-推送通知,Firebase的后果

[英]Change bundle identifier in Xcode 8 – consequences for push notifications, Firebase

I want to change the bundle identifier in Xcode 8, but I'm not sure about the consequences for doing so. 我想在Xcode 8中更改包标识符,但是我不确定这样做的后果。 I have a Firebase project and Apple push notifications that are both connected to the old bundle identifier. 我有一个Firebase项目和Apple推送通知,它们都连接到旧的捆绑包标识符。

I tried changing the bundle identifier under Target > General, and tried to send a notification from Firebase, which worked, even though both Firebase and the certificate in developer.apple.com referenced the old bundle identifier. 我尝试在“目标”>“常规”下更改捆绑软件标识符,并尝试从Firebase发送通知,即使Firebase和developer.apple.com中的证书都引用了旧的捆绑软件标识符,该通知仍然有效。 Should I generate new certificates? 我应该生成新证书吗? What is the best course of action to avoid messing up anything? 避免弄乱任何东西的最佳方法是什么?

I have also tried Googling around for changing the bundle identifier, but they only show how to do it in Xcode, but not what you should do if you also dabble with push notifications and/or Firebase. 我还尝试了Googling来更改包标识符,但是它们仅显示了如何在Xcode中执行此操作,但没有显示如果您还沉迷于推送通知和/或Firebase时应该怎么做。

Thanks in advance! 提前致谢!

Push notifications basically works on the basis of your certificates. 推送通知基本上根据您的证书起作用。

1.Push certificates - uploaded on server to send push notifications to devices. 1.推送证书-上载到服务器以将推送通知发送到设备。 2.Development/Distribution certificates - used by app. 2.开发/发行证书-由应用使用。

So both of them nowhere linked to bundle id if you try to create a new certificate. 因此,如果您尝试创建新证书,则它们都无处链接到捆绑软件ID。

While creating provisioning profile it is required to have add an app id & device ids so that an app can be installed on provisioned devices 在创建配置文件时,需要添加应用ID和设备ID,以便可以在配置的设备上安装应用

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

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