Integrate notification for SDK - iOS
1. Adding the Firebase Configuration File
Download the G
oogleService-Info.plistfile:Add the G
oogleService-Info.plistfile to your project:
2. Enable Push Notifications
Open your project in Xcode.
Select the
Runnertarget, then navigate to theSigning & Capabilitiestab.Add the
Push NotificationsandBackground Modescapabilities.Check
Remote notificationsunderBackground Modes.
3. TIXNGO SDK notification function
TixngoManager.shared.updateFCMToken(token) => Using this function whenever received FCMToken from Firebase.
TixngoManager.shared.processFcmMessageIfNeed(notificationData) => Using this function when received notification from Firebase, the SDK will handle
TixngoManager.shared.onRemoteFcmMessageIfNeed => Using this function when tap on notification from Firebase, the SDK will handle redirect to SDK UI
4. DEMO
You can check demo for notifications on https://github.com/tixngo-mobile-github/tixngo_ios_demo/tree/demo_v1.0.30
© TIXNGO 2023 - Login