Hi,
I’ve started the Firebase Cloud Messaging implementation for two iOS applications, let say Client and Hairdresser app. In XCode terms I have one project with two targets, one for Client and another for Hairdresser app, each of them has two different Bundle ID’s.For iOS dev console I have also to App Id’s for each Bundle ID with Push Notifications enabled. For each app I’ve exported the certificates as .p12 files.I have a firebase project created, there I’ve added two iOS application, Hairdresser app with hairdresser Bundle ID, and another one for Client app with client Bundle ID.It's very important to have one Firebase project with two iOS applications !
The problem:
- Let’s say that I’ve created the Hairdresser App first, and I’ve added the Hairdresser p.12 file, all is working fine and the certificate is accepted. If I will create the Client app after Hairdresser app, and will try to add the Client .p12 certificate I will receive the error: “The group ID specified in the certificate does not match the group ID you entered.” ->
If I will delete both apps and now I will create the client app and after this the hairdresser app, now adding the .p12 certificate for hairdresser will be impossible. Why ? Finally those are two different applications.
Additional question:
- In the same XCode project I have two app, that’s mean two targets. Can I add the Firebase Cloud Messaging config files (.plist) in separated folders (not root), one .plist file for one application, and another .plist file for the second one(checking only the needed target… in the documentation is said that I need to check all targets! ). Will this work ? If no, how can I say for each target what Configuration file to use ?
Thanks.