Sense is a client side library that enables you to identify users by pinpointing their hardware and software characteristics. This is done by computing a token that stays consistent in spite of any manipulation.
This tracking method works even in the browser's incognito mode and is not cleared by flushing the cache, closing the browser or restarting the operating system, using a VPN or installing AdBlockers. Sense is available as SenseOS for every open source requirement and is different from Sense PRO, our extremely accurate and detailed product.
Sense is a device intelligence and identification tool. This tool collects a comprehensive set of attributes unique to a device or browser, forming an identity that will help businesses. Requirements
- OS 12.0 or above
- Swift version 5.0 and above
Note: If the application does not have the listed permissions, the values collected using those permissions will be ignored. To provide a valid device details, we recommend employing as much permission as possible based on your use-case.
Note: In your controller, there are at least two text fields and a scrollview.
Step 1 - Install SDK
pod 'SenseOSUserActivity', '~> 0.0.2'
Step 2 - Import SDK
import SenseOSUserActivity
Step 3 - Add Delegate Method
Add the delegate method in your Controller Class file
SenseOSUserActivityDelegate
Step 4 - Detect User Activity
Use the lines below to invoke ViewDidLoad.
SenseOSUserActivitySDK.initKeyStrokeBehaviour(for: [txtUsername, txtPassword]);
SenseOSUserActivitySDK.initScrollBehaviour(for: [scrollView]);
SenseOSUserActivitySDK.initTouchBehaviour(for: self.view)
Step 5 - Get Device Details
Use the line below to invoke any button action or ViewDidLoad to get the DeviceDetails.
SenseOSUserActivitySDK.getBehaviourData(withDelegate: self)
Step 6 - Implement Delegate Method
Set and Implement our Delegate method to receive the Callback details
extension ViewController: SenseOSUserActivityDelegate{
func onFailure(message: String) {
// Failure Callback.
}
func onSuccess(data: [String : Any]) {
// Success Callback
}
}
Sample Program
Here you can find the demonstration to do the integration.
import UIKit
import SenseOSUserActivity
class SenseOSController: UIViewController, SenseOSUserActivityDelegate {
override func viewDidLoad() {
super.viewDidLoad()
SenseOSUserActivitySDK.initKeyStrokeBehaviour(for: [txtUsername, txtPassword]);
SenseOSUserActivitySDK.initScrollBehaviour(for: [scrollView]);
SenseOSUserActivitySDK.initTouchBehaviour(for: self.view)
}
@IBAction func btnSense(_ sender: Any) {
SenseOSUserActivitySDK.getBehaviourData(withDelegate: self)
}
@objc func onSuccess(data: String) {
// Handle success callback
}
@objc func onFailure(message: String) {
// Handle failure callback
}
}
1️⃣ Visit the GitHub Repository
2️⃣ Download or Clone the Repository. Use the GitHub interface to download the ZIP file, or run.
3️⃣ Run the Installer / Setup Script. Follow the setup instructions provided below.
4️⃣ Start Testing. Once installed, begin testing and validating the accuracy of the metrics you're interested in.
✅ Predict user intent : Identify the good from the bad visitors with precision
✅ Create user identities : Tokenise events with a particular user and device
✅ Custom risk signals : Developer specific scripts that perform unique functions
✅ Protect against Identity spoofing : Prevent users from impersonation
✅ Stop device or browser manipulation : Detect user behaviour anomalies
Sense OS is available under the MIT license
Thank you for your interest in contributing to this project! We welcome all contributions and are excited to have you join our community. Please read these code of conduct to ensure a smooth collaboration.
Public Support:
For questions, bug reports, or feature requests, please use the Issues and Discussions sections on our repository. This helps the entire community benefit from shared knowledge and solutions.
Community Chat:
Join our Discord server (link) to connect with other developers, ask questions in real-time, and share your feedback on Sense.
Interested in contributing to Sense?
Please review our Contribution Guidelines to learn how to get started, submit pull requests, or run the project locally. We encourage you to read these guidelines carefully before making any contributions. Your input helps us make Sense better for everyone!