Create Firebase project
- Download “google-services.json” file for Android
- Download “GoogleService-Info.plist” for iOS
Config iOS push notification
Create Apple Push Notifications service (APNs) key
Save & Download p8 key
Create Push Notification certificates for your app
Create “Certificate Request” file
Create Push Notification certificates
- Select your App Id
- Edit Push Notification
- Create Development and Production certificates
- Upload the above request file
Upload Push Notification p8 file into Firebase
Remove old provisioning profiles and create new ones
This step is very important to let push notification work, if you still use old provisioning profile, push notification doesn’t work because the APNS certificate is strongly linked to the Apple Member account certificates/provisioning files. If they don’t match, the push won’t come through.
That means, you have to sign your app with the same provisioning file (with the same bundle id) you’ve signed the old app with.
Errors
If notification doesn’t come for iOS, try the following steps
- Remove “AppStore ID”, “Team ID”
- Delete your APNs certificate key
- Add .p8 back again, make sure Team ID is automatically generated from .p8 key
- Download “GoogleService-Info.plist” again
Leave a Reply