Sensfrx Extension β Fraud Detection & Analytics for Kodular Apps
Description
Sensfrx is a security and analytics extension designed to help Kodular developers detect and prevent fraudulent activities in their apps. This extension enables features like device fingerprinting, event tracking, location-based actions, and secure transaction management.
With Sensfrx, you can add an extra layer of security to protect your app from fake signups, unauthorized logins, and suspicious transactions.
Blocks Overview
How to Use Sensfrx in Your Kodular App
Prerequisites
Before integrating Sensfrx into your Kodular project, make sure you have:
- A Sensfrx Account (Sign up for a free trial and verify your email).
- A Property ID and Secret Key (Generated after setup).
- The following permissions added to your app:
-
Internet
: Required for server communication. -
Access Fine Location
: Needed for location tracking.
-
Integration Steps
1. Configure Sensfrx
Use the ConfigureSensfrx
block to initialize Sensfrx in your app.
-
Parameters:
-
sandboxMode (boolean)
: Usetrue
for testing mode,false
for production. -
secretKey (String)
: Your Sensfrx-provided secret key.
-
-
Usage:
- This block should be placed in
Screen1.Initialize
so Sensfrx is ready when your app starts.
- This block should be placed in
2. Generate Encoded Device Fingerprint
Use the GetDeviceFingerprint
block to create a unique device fingerprint.
-
Parameters:
-
latitude (double)
: Deviceβs current latitude. -
longitude (double)
: Deviceβs current longitude.
-
-
Usage:
- This fingerprint is useful for authentication and fraud prevention in login, registration, and transaction events.
3. Pass User ID After Login
Use the PassUID
block to link user actions to a specific account.
-
Why use this?
- Ensures that login, transaction, and other activities are linked to a verified user.
4. Retrieve App Details
-
GetPackageName
: Gets your appβs package name. -
GetToken
: Retrieves a unique authentication token for the session.
These blocks help validate and secure transactions by linking actions to a specific app instance.
5. Track User Actions
-
TrackClickEvent
: Captures screen touch coordinates and gyroscope data. Use this block in every screen where you want to track user interactions.
-
TrackTransactionEvent
: Logs secure transaction details by sending a JSON string with transaction data.
Example JSON for TrackTransactionEvent
block:
{
"transaction_id": "TXN123456",
"transaction_type": "purchase",
"email": "[email protected]",
"first_name": "John",
"last_name": "Doe",
"username": "john_doe123",
"payment_mode": "Credit Card",
"payment_provider": "Visa",
"card_fullname": "John Doe",
"card_bin": "411111",
"card_expire": "12/2026",
"card_last": "1234",
"cvv": "999",
"phone_no": "9998887777",
"transaction_amount": "1500",
"transaction_currency": "INR",
"items": [
{
"item_id": "101",
"item_name": "Wireless Headphones",
"item_category": "Electronics",
"item_quantity": "1",
"item_price": "1200",
"item_url": "https://example.com/item101"
},
{
"item_id": "102",
"item_name": "USB-C Charger",
"item_category": "Accessories",
"item_quantity": "1",
"item_price": "300",
"item_url": "https://example.com/item102"
}
],
"shipping_cost": "50",
"shipping_country": "India",
"shipping_state": "Maharashtra",
"shipping_city": "Mumbai",
"shipping_zip": "400001",
"shipping_phone": "9998887777",
"shipping_fullname": "John Doe",
"shipping_method": "Express",
"billing_country": "India",
"billing_state": "Maharashtra",
"billing_city": "Mumbai",
"billing_zip": "400001",
"billing_phone": "9998887777",
"merchant_name": "Gadget World",
"merchant_category": "Electronics",
"merchant_id": "M123456",
"merchant_country": "India",
"ev": "attempt_succeeded",
"card_type": "Visa",
"tax_amount": "100",
"discount_amount": "50",
"invoice_id": "INV98765",
"d_f": "device_fingerprint_abc123",
"request_token": "token_xyz789",
"user_id": "user_987654"
}
-
Why use this?
- Helps prevent fraudulent transactions by securely linking payments to a verified device.
Example Usage in Kodular
-
Initialize Sensfrx in
Screen1.Initialize
with theConfigureSensfrx
block. -
Pass the User ID after login using
PassUID
. -
Track User Clicks & Transactions with
TrackClickEvent
andTrackTransactionEvent
.
Download & Documentation
View Analytics on Sensfrx Dashboard
After integrating Sensfrx into your app, you can monitor real-time fraud detection, user behavior, and transaction logs directly from your Sensfrx Dashboard.
Need Help?
If you have any questions or feedback, feel free to reply to this post or contact us at [email protected].
Would love to hear your thoughts and suggestions!