Get Started

Get Started

Pre-requisites

  • Ensure your native application development environment is set up (e.g., Xcode for iOS, Android Studio for Android).
  • Prepare integration and production SDK keys.
  • Understand where user session information is in your app, this will be needed for Felt’s initial context.
  • Share your design language with Felt’s Client Success Manager, who will build a customized Felt package to be used for production.
Support Candycane arkdown** syntax here.
Supports iOS 13 and up. Swift Package Manager compatible.

Prepare for Felt

  • Initialization: Calling the init function of Felt Library, will require passing the JSON object as a parameter for initial context. Attributes to be passed are:
    • sdkKey: required
    • userId: required, null if unauthorized
    • deviceSerialNumber: required
    • userProfile: optional
    • deviceMetadata: optional

Here is an example:

// Serialize your user dictionary
let userData: [String: Any] = [
    "name": "John Doe",
    "age": 30,
    "isSubscriber": true,
    "preferences": ["theme": "dark", "notifications": false]
]
 
let deviceData: [String: Any] = [
    ["timestamp": "2024-04-06T00:00:00Z", "temperature": 16],
    ["timestamp": "2024-04-06T01:00:00Z", "temperature": 15.5],
    ["timestamp": "2024-04-06T02:00:00Z", "temperature": 15],
    // Add more data points as needed...
    ["timestamp": "2024-04-06T23:00:00Z", "temperature": 15.5]
]
 
 
extension Portal {
 
  static let checkout = Self(
      name: "checkout",
      startDir: "portals/shopwebapp",
      initialContext: [
        "startingRoute": "/checkout",
        "sdkKey": "sg-00000000000",
        "userId": "123456789",
        "deviceSerialNumber": "1111111111",
        "userProfile": JSONSerialization.data(withJSONObject: userData)
        "deviceMetadata": JSONSerialization.data(withJsonObject: deviceData)
      ],
  )
 
}

Step 5: Native Permissions for Video Visits

Enable these permissions for video visit functionality: Microphone, Camera, Bluetooth and Photo Library

Congratulations! By following these steps, you should be able to integrate the Felt experience into your native application. Felt works seamlessly with your existing navigation system and provides your users a customized experience based on the initial context provided.