https://github.com/testappio/ios-sdk.git
pod 'TestAppIODSK', :git => 'https://github.com/testappio/ios-sdk.git'
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
TestAppio.setup(
scene: windowScene,
configuration: .init(
appId: "<TestApp.io APP_ID>",
apiToken: "<TestApp.io API_TOKEN>"
)
)
Collect
App_ID
andAPI_Token
from your app page at https://portal.testapp.io/apps
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 }
)
TestAppio.show()
TestAppio.hide()