Reputation: 397
I’ve started the Firebase Cloud Messaging implementation for two iOS applications, 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
The problem:
Additional question:
Upvotes: 3
Views: 2031
Reputation: 397
Finally I was able to setup the second app too. iOS guide for Firebase integration says that we need to export the private key as .P12 file from the Push Certificate in Keychain. This is working fine for first added app but not for the second. I’ve tried another methods to generate the .P12 file. Exporting directly the Apple Push Certificates from Keychain (not the private key) give the certificate that is accepted by the Firebase console. I don’t understand why the guide method doesn’t work … but at lest you will know about this.
Also we can add the Firebase Cloud Messaging config files in separated folders (not root), one .plist file for one application(target) and the second one for the second app.
Upvotes: 3