
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
apxor-react-native-sdk
Advanced tools
$ npm install apxor-react-native-sdk --save
$ react-native link apxor-react-native-sdk
android/app/src/main/java/[...]/MainActivity.java
import com.apxor.reactnativesdk.ApxorReactNativeSdkPackage;
to the imports at the top of the filenew ApxorReactNativeSdkPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':apxor-react-native-sdk'
project(':apxor-react-native-sdk').projectDir = new File(rootProject.projectDir, '../node_modules/apxor-react-native-sdk/android')
Insert the following lines inside repositories block in android/build.gradle
maven { url "http://repo.apxor.com/artifactory/list/libs-release-android/" }
Insert the following lines inside the dependencies block in android/app/build.gradle
:
compile project(':apxor-react-native-sdk')
implementation 'com.apxor.android:apxor-android-sdk-core:2.3.7@aar'
Insert the following lines in the onCreate method in android/app/src/main/java/(package)/MainApplication.java
:
ApxorSDK.initialize("<APP_ID>", MainApplication.this);
Note:
MainApplication.this
, makes sures to provide ApplicationContext instead of ReactApplicationContext for ApxorSDK to work properly.MainApplication
), make sure to use your_class_name.this
instead.Insert the following lines inside the dependencies block in android/app/build.gradle
:
implementation 'com.apxor.android:apxor-android-sdk-push:1.1.5@aar'
implementation 'com.google.firebase:firebase-messaging:11.4.0'
Insert the following piece of code in the onMessageReceived(RemoteMessage) function
if (ApxorPushAPI.isApxorNotification(message)) {
ApxorPushAPI.handleNotification(message, getApplicationContext());
}
import ApxorReactNativeSdk from 'apxor-react-native-sdk';
ApxorReactNativeSdk.setUserIdentifier("user_id");
ApxorReactNativeSdk.setUserIdentifier("<some_user_id>");
ApxorReactNativeSdk.logAppEvent(event_name, properties);
ApxorReactNativeSdk.logAppEvent("ADD_TO_CART", {
"userId": "user@example.com",
"value": "1299",
"item": "Sony Head Phone 1201"
});
ApxorReactNativeSdk.setUserCustomInfo(properties);
ApxorReactNativeSdk.setUserCustomInfo({
"property1": "value",
"property2": "value2"
});
ApxorReactNativeSdk.logNavigationEvent(screen_name);
ApxorReactNativeSdk.logNavigationEvent("LoginScreen");
FAQs
Apxor react native analytics SDK
The npm package apxor-react-native-sdk receives a total of 0 weekly downloads. As such, apxor-react-native-sdk popularity was classified as not popular.
We found that apxor-react-native-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.