You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. On the **PLuG Tokens** page, you will be able create your credentials under the **App Credentials**. These credentials are referred to as `appID` and `secret` in the code.
Once you have the credentials, you can configure the DevRev SDK in your app. The SDK will be initialized once you have called the configuration method:
Configure the SDK in the `AppDelegate.application(_:didFinishLaunchingWithOptions:)` method.
62
76
63
77
### SwiftUI apps
64
-
65
78
Depending on the architecture of your app, you will need to configure the SDK at your entry point or initial view of the app.
66
79
67
80
# Features
68
-
69
81
## Identification
70
-
Certain features of the SDK **require** a user identification. Make sure that you identify the user using the `DevRev.identify(...)` function.
82
+
Certain features of the SDK **require** a user identification. Make sure that you identify the user using the `DevRev.identify(_:)` function.
71
83
72
84
The function accepts the `DevRev.Identification` structure, with the user ID (`userID`) as the only required property, all other properties are optional.
73
85
74
-
The call would look something like this:
86
+
> Note: The `DevRev.identify(_:)` function is an asynchronous one, make sure that you wrap it in a `Task` when calling it from synchronous contexts.
The identification function should be placed at the appropriate place in your app after you login your user. If you have the user information at app launch, call the function after the `DevRev.configure(...)` method.
93
+
The identification function should be placed at the appropriate place in your app after you login your user. If you have the user information at app launch, call the function after the `DevRev.configure(appID:secret:supportID:)` method.
80
94
81
95
## PLuG support chat
82
-
83
96
### UIKit
84
-
85
97
The support chat feature can be shown as a modal screen or pushed to a navigation stack.
86
98
87
99
The following overloaded method will show the support screen:
0 commit comments