Skip to content

TestApp.io in-app SDK provides a convenient and user-friendly way for testers to report bugs and provide feedback from inside the app

License

Notifications You must be signed in to change notification settings

testappio/ios-sdk

Repository files navigation

TestApp.io iOS SDK v1.0

3

Setup

Swift package manager:

https://github.com/testappio/ios-sdk.git

Cocoapods:

pod 'TestAppIODSK', :git => 'https://github.com/testappio/ios-sdk.git'

Required fields in Info.plist file:

TestApp.io SDK requires access to camera roll, to save and get screen recordings and images.

Add these fields to Info.plist if you don't have them already:

NSPhotoLibraryUsageDescription
NSPhotoLibraryAddUsageDescription

Usage:

Launching the SDK:

TestAppio.setup(
  scene: windowScene,
  configuration: .init(
    appId: "<TestApp.io APP_ID>",
    apiToken: "<TestApp.io API_TOKEN>"
  )
)

Collect App_ID and API_Token from your app page at https://portal.testapp.io/apps

Identifying the user:

If the user identity has changed after you initialise the sdk, you can use identify method

TestAppio.identify(
  userId: "<YOUR USER ID>", //from your db
  name:  "<YOUR USER NAME>", //from your db or user fills it
  email:  "<YOUR USER EMAIL>", //from your db or user fills it
  traits: ["<KEY>": "<VALUE>"], //from your db or app [Optional]
  completion: errorHandler
)

Example:

TestAppio.identify(
  userId: "1",
  name: "Joe Doe",
  email: "joe@doe.com",
  traits: ["role": "iOS Developer", "verified": "true", "level": "10"],
  completion: { _ in }
)

Control the SDK overlay:

TestAppio.show()
TestAppio.hide()

Screen Shot 2022-12-04 at 12 02 06 AM

About

TestApp.io in-app SDK provides a convenient and user-friendly way for testers to report bugs and provide feedback from inside the app

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published