Skip to content

Commit 22a2989

Browse files
committed
Release 2.1.1
1 parent 22a9b60 commit 22a2989

File tree

160 files changed

+62
-17734
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+62
-17734
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2.1.1] - 2025-07-25
8+
9+
### Fixed
10+
- Fixed an issue with manual unmasking of input components.
11+
- Fixed an issue with session uploads when the app is rapidly killed.
12+
713
## [2.1.0] - 2025-06-27
814

915
### Added

MIGRATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This guide and chart should help facilitate the transition from the legacy UserE
77
|-|-|-|
88
| Installation | `cordova plugin add userexperior-cordova-plugin@<version>` | `cordova plugin add @devrev/sdk-cordova@<version>` |
99
| Initialization | `UserExperior.startRecording(appID)` | `DevRev.configure(appID, successCallback, errorCallback)` |
10-
| User Identification | `UserExperior.setUserIdentifier(userIdentifier)` | `DevRev.identifyAnonymousUser(userID, successCallback, errorCallback)`<br> `DevRev.identifyUnverifiedUser(identity, successCallback, errorCallback)`<br> `DevRev.updateUser(identity, successCallback, errorCallback)`<br> `DevRev.logout(deviceID, successCallback, errorCallback)` |
10+
| User Identification | `UserExperior.setUserIdentifier(userIdentifier)` | `DevRev.identifyAnonymousUser(userID, successCallback, errorCallback)`<br> `DevRev.identifyUnverifiedUser(identity, successCallback, errorCallback)`<br> `DevRev.identifyVerifiedUser(userID, sessionToken, successCallback, errorCallback)`<br> `DevRev.updateUser(identity, successCallback, errorCallback)`<br> `DevRev.logout(deviceID, successCallback, errorCallback)` |
1111
| Event Tracking | `UserExperior.logEvent(name)` | `DevRev.trackEvent(name, properties, successCallback, errorCallback)` |
1212
| Session Recording | `UserExperior.stopRecording()`<br />`UserExperior.pauseRecording()`<br />`UserExperior.resumeRecording()` | `DevRev.startRecording(successCallback, errorCallback)`<br />`DevRev.stopRecording(successCallback, errorCallback)`<br />`DevRev.pauseRecording(successCallback, errorCallback)`<br />`DevRev.resumeRecording(successCallback, errorCallback)`<br />`DevRev.processAllOnDemandSessions(successCallback, errorCallback)` |
1313
| Opting-in or out | `UserExperior.optOut()`<br> `UserExperior.optIn()`<br> `UserExperior.getOptOutStatus()` | `DevRev.stopAllMonitoring(successCallback, errorCallback)`<br> `DevRev.resumeAllMonitoring(successCallback, errorCallback)` |

README.md

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ DevRev SDK, used for integrating DevRev services into your Cordova app.
55
- [DevRev SDK for Cordova](#devrev-sdk-for-cordova)
66
- [Table of contents](#table-of-contents)
77
- [Quickstart guide](#quickstart-guide)
8+
- [Requirements](#requirements)
89
- [Installation](#installation)
910
- [Set up the DevRev SDK](#set-up-the-devrev-sdk)
1011
- [Features](#features)
1112
- [Identification](#identification)
1213
- [Anonymous identification](#anonymous-identification)
1314
- [Unverified identification](#unverified-identification)
1415
- [Verified identification](#verified-identification)
16+
- [Generate an AAT](#generate-an-aat)
17+
- [Exchange your AAT for a session token](#exchange-your-aat-for-a-session-token)
18+
- [Identifying the verified user](#identifying-the-verified-user)
1519
- [Updating the user](#updating-the-user)
1620
- [Logout](#logout)
1721
- [PLuG support chat](#plug-support-chat)
@@ -43,6 +47,11 @@ DevRev SDK, used for integrating DevRev services into your Cordova app.
4347
- [Migration guide](#migration-guide)
4448

4549
## Quickstart guide
50+
### Requirements
51+
- Cordova 12.0 or later.
52+
- On Android, the minimum API level should be 24.
53+
- On iOS, the minimum deployment target should be 15.0.
54+
4655
### Installation
4756
To install the DevRev SDK, run the following command:
4857

@@ -90,10 +99,53 @@ DevRev.identifyUnverifiedUser(identity, successCallback, errorCallback)
9099
```
91100

92101
#### Verified identification
93-
The verified identification method identifies users with a unique identifier and verifies their identity with the DevRev backend.
102+
The verified identification method is used to identify users with an identifier unique to your system within the DevRev platform. The verification is done through a token exchange process between you and the DevRev backend.
103+
104+
The steps to identify a verified user are as follows:
105+
1. Generate an AAT for your system (preferably through your backend).
106+
2. Exchange your AAT for a session token for each user of your system.
107+
3. Pass the user identifier and the exchanged session token to the `DevRev.identifyVerifiedUser(userID, sessionToken, successCallback, errorCallback)` method.
108+
109+
> [!CAUTION]
110+
> For security reasons we **strongly recommend** that the token exchange is executed on your backend to prevent exposing your application access token (AAT).
111+
112+
##### Generate an AAT
113+
1. Open the DevRev web app at [https://app.devrev.ai](https://app.devrev.ai) and go to the **Settings** page.
114+
2. Open the **PLuG Tokens** page.
115+
3. Under the **Application access tokens** panel, click **New token** and copy the token that's displayed.
116+
117+
> [!IMPORTANT]
118+
> Ensure that you copy the generated application access token, as you cannot view it again.
119+
120+
##### Exchange your AAT for a session token
121+
In order to proceed with identifying the user, you need to exchange your AAT for a session token. This step will help you identify a user of your own system within the DevRev platform.
122+
123+
Here is a simple example of an API request to the DevRev backend to exchange your AAT for a session token:
124+
> [!CAUTION]
125+
> Make sure that you replace the `<AAT>` and `<YOUR_USER_ID>` with the actual values.
126+
```bash
127+
curl \
128+
--location 'https://api.devrev.ai/auth-tokens.create' \
129+
--header 'accept: application/json, text/plain, */*' \
130+
--header 'content-type: application/json' \
131+
--header 'authorization: <AAT>' \
132+
--data '{
133+
"rev_info": {
134+
"user_ref": "<YOUR_USER_ID>"
135+
}
136+
}'
137+
```
138+
139+
The response of the API call will contain a session token that you can use with the verified identification method in your app.
140+
141+
> [!NOTE]
142+
> As a good practice, **your** app should retrieve the exchanged session token from **your** backend at app launch or any relevant app lifecycle event.
143+
144+
##### Identifying the verified user
145+
Pass the user identifier and the exchanged session token to the verified identification method:
94146

95147
```javascript
96-
DevRev.identifyVerifiedUser(identity, successCallback, errorCallback)
148+
DevRev.identifyVerifiedUser(userID, sessionToken, successCallback, errorCallback)
97149
```
98150

99151
#### Updating the user

devrev-sdk-cordova-2.1.1.tgz

17.9 KB
Binary file not shown.

sample/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
"platforms": []
2525
},
2626
"devDependencies": {
27-
"@devrev/sdk-cordova": "^2.1.0"
27+
"@devrev/sdk-cordova": "^2.1.1"
2828
}
2929
}

sample/platforms/ios/.gitignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

sample/platforms/ios/CordovaLib/Classes/Private/CDVCommandDelegateImpl.h

Lines changed: 0 additions & 36 deletions
This file was deleted.

sample/platforms/ios/CordovaLib/Classes/Private/CDVCommandDelegateImpl.m

Lines changed: 0 additions & 181 deletions
This file was deleted.

sample/platforms/ios/CordovaLib/Classes/Private/CDVDebug.h

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)