Integrate notification for SDK - iOS

Integrate notification for SDK - iOS

1. Adding the Firebase Configuration File

  • Download the GoogleService-Info.plist file:

  • Add the GoogleService-Info.plist file to your project:

2. Enable Push Notifications

  • Open your project in Xcode.

  • Select the Runner target, then navigate to the Signing & Capabilities tab.

  • Add the Push Notifications and Background Modes capabilities.

  • Check Remote notifications under Background 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