nativescript-uxcam
Advanced tools
Comparing version 1.0.0-beta.3 to 1.0.0-beta.4
# Changelog | ||
## [1.0.0-beta.4] - 2021-04-05 | ||
- Session not recording issue (Android) fixed | ||
- iOS SDK updated to v3.3.4 | ||
## [1.0.0-beta.3] - 2021-03-19 | ||
- Force iOS version 10.0 in project and Podfile - UXCam requires 10.0+ on iOS | ||
- Force iOS version 10.0 in project and Podfile | ||
- UXCam requires 10.0+ on iOS | ||
@@ -7,0 +13,0 @@ ## [1.0.0-beta.2] - 2021-02-25 |
@@ -11,10 +11,10 @@ var UXCam = com.uxcam.UXCam | ||
static startWithKey(apiKey) { | ||
if (UXCam){ | ||
if (UXCam) { | ||
var context = applicationModule.android.startActivity; | ||
if (context){ | ||
UXCam.startApplicationWithKeyForCordova(context, apiKey); | ||
}else{ | ||
if (context) { | ||
UXCam.startWithKey(apiKey); | ||
} else { | ||
console.log("UXCam: Cannot get application context"); | ||
} | ||
}else{ | ||
} else { | ||
console.log("UXCam: Cannot find UXCam package"); | ||
@@ -33,3 +33,3 @@ } | ||
static urlForCurrentSession() { | ||
return UXCam.urlForCurrentSession(); | ||
return UXCam.urlForCurrentSession(); | ||
} | ||
@@ -44,7 +44,6 @@ | ||
UXCam.occludeSensitiveScreen(hideScreen, hideGesture); | ||
} | ||
else { | ||
} else { | ||
UXCam.occludeSensitiveScreen(hideScreen); | ||
} | ||
} | ||
@@ -72,7 +71,7 @@ | ||
static logEventWithProperties(eventName, properties){ | ||
static logEventWithProperties(eventName, properties) { | ||
var androidProps = new org.json.JSONObject(); | ||
for (var key in properties) { | ||
androidProps.put(key + "", properties[key] + ""); | ||
} | ||
for (var key in properties) { | ||
androidProps.put(key + "", properties[key] + ""); | ||
} | ||
UXCam.logEvent(eventName, androidProps) | ||
@@ -117,3 +116,3 @@ } | ||
static optInVideoRecordingStatus(){ | ||
static optInVideoRecordingStatus() { | ||
return UXCam.optInVideoRecordingStatus(); | ||
@@ -158,4 +157,4 @@ } | ||
static occludeSensitiveView(sensitiveView){ | ||
if (sensitiveView){ | ||
static occludeSensitiveView(sensitiveView) { | ||
if (sensitiveView) { | ||
UXCam.occludeSensitiveView(sensitiveView.nativeView); | ||
@@ -165,10 +164,10 @@ } | ||
static unOccludeSensitiveView(sensitiveView){ | ||
if (sensitiveView){ | ||
static unOccludeSensitiveView(sensitiveView) { | ||
if (sensitiveView) { | ||
UXCam.unOccludeSensitiveView(sensitiveView.nativeView); | ||
} | ||
} | ||
static occludeSensitiveViewWithoutGesture(sensitiveView){ | ||
if (sensitiveView){ | ||
static occludeSensitiveViewWithoutGesture(sensitiveView) { | ||
if (sensitiveView) { | ||
UXCam.occludeSensitiveViewWithoutGesture(sensitiveView.nativeView); | ||
@@ -186,15 +185,15 @@ } | ||
static addScreenNameToIgnore(screenName){ | ||
static addScreenNameToIgnore(screenName) { | ||
UXCam.addScreenNameToIgnore(screenName); | ||
} | ||
static addScreenNamesToIgnore(screenName){ | ||
static addScreenNamesToIgnore(screenName) { | ||
UXCam.addScreenNamesToIgnore(screenName); | ||
} | ||
static removeScreenNameToIgnore(screenName){ | ||
static removeScreenNameToIgnore(screenName) { | ||
UXCam.removeScreenNameToIgnore(screenName); | ||
} | ||
static removeScreenNamesToIgnore(screenName){ | ||
static removeScreenNamesToIgnore(screenName) { | ||
UXCam.removeScreenNamesToIgnore(screenName); | ||
@@ -221,7 +220,7 @@ } | ||
var androidProps = new org.json.JSONObject(); | ||
for (var key in properties) { | ||
androidProps.put(key + "", properties[key] + ""); | ||
} | ||
for (var key in properties) { | ||
androidProps.put(key + "", properties[key] + ""); | ||
} | ||
UXCam.reportBugEvent(eventName, androidProps) | ||
} | ||
} | ||
} |
{ | ||
"name": "nativescript-uxcam", | ||
"version": "1.0.0-beta.3", | ||
"version": "1.0.0-beta.4", | ||
"description": "NativeScript plugin for UXCam.", | ||
@@ -23,7 +23,7 @@ "license": "MIT", | ||
"ios", | ||
"analytics", | ||
"session-analytics", | ||
"analytics", | ||
"session-analytics", | ||
"user-sessions", | ||
"ux" | ||
] | ||
} | ||
} |
# NativeScript UXCam | ||
## Installation | ||
`tns plugin add nativescript-uxcam` | ||
@@ -13,3 +14,3 @@ | ||
```javascript | ||
import { NSUXCam } from 'nativescript-uxcam'; | ||
import {NSUXCam} from 'nativescript-uxcam'; | ||
@@ -27,4 +28,5 @@ NSUXCam.optIntoSchematicRecordings(); | ||
// Angular - replace <elementRefToOcclude> with your element reference after page is loaded | ||
const sensitiveView = this.<elementRefToOcclude>.nativeElement; | ||
NSUXCam.occludeSensitiveView(sensitiveView); | ||
const sensitiveView = this. | ||
<elementRefToOcclude>.nativeElement; | ||
NSUXCam.occludeSensitiveView(sensitiveView); | ||
``` | ||
@@ -78,2 +80,2 @@ | ||
reportBugEvent | Send a report of a problem your app encountered to be displayed in the dashboard | ||
reportBugEventProperties | Send bug event with associated properties | ||
reportBugEventProperties | Send bug event with associated properties |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
448458
79
1