Integrate notification for SDK - iOS
1. Adding the Firebase Configuration File
Download the G
oogleService-Info.plist
file:Add the G
oogleService-Info.plist
file to your project:
2. Enable Push Notifications
Open your project in Xcode.
Select the
Runner
target, then navigate to theSigning & Capabilities
tab.Add the
Push Notifications
andBackground Modes
capabilities.Check
Remote notifications
underBackground 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