Push
Firebase Push Notification Setup
Prerequisites
- Firebase SDK integrated with your app
- Firebase private key uploaded in Castled dashboard. More details can be found here
If your iOS app is using Firebase for sending push notifications you can follow the steps below when integrating Castled SDK.
- Complete the basic Push Notifications setup.
- If you are using rich push notification, checkout the additional steps.
- Disable swizzling.
- Notify Castled SDK about push tokens. Please find the code snippet for this below.
-
Monitoring token refresh
-
If fetching token manually, you can notify the SDK about the the new token as below.
-