Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
react-native-flurry-analytics
Advanced tools
Readme
npm install react-native-flurry-analytics --save
react-native link react-native-flurry-analytics
import FlurryAnalytics from 'react-native-flurry-analytics';
sudo gem install cocoapods
cd ios
pod init
open Podfile
Add this line
pod 'Flurry-iOS-SDK/FlurrySDK'
Then run
pod install
Add these lines in AndroidManifest.xml
<!-- Required permissions - Internet access -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<!-- Recommended permission - External memory pre-caching -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
Add following to android/app/proguard-rules.pro
# Required to preserve the Flurry SDK
-keep class com.flurry.** { *; }
-dontwarn com.flurry.**
-keepattributes *Annotation*,EnclosingMethod,Signature
-keepclasseswithmembers class * {
public (android.content.Context, android.util.AttributeSet, int);
}
# Google Play Services library
-keep class * extends java.util.ListResourceBundle {
protected Object[ ][ ] getContents();
}
-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
public static final *** NULL;
}
-keepnames @com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
@com.google.android.gms.common.annotation.KeepName *;
}
-keepnames class * implements android.os.Parcelable {
public static final ** CREATOR;
}
FlurryAnalytics.startSession('YOUR_API_KEY');
!!! method must be called prior to invoking startSession
FlurryAnalytics.setAppVersion('1.0.0');
!!! method must be called prior to invoking startSession
FlurryAnalytics.setDebugLogEnabled(false)
!!! method must be called prior to invoking startSession
FlurryAnalytics.setSessionContinueSeconds(10);
!!! method must be called prior to invoking startSession
FlurryAnalytics.setCrashReportingEnabled(true);
FlurryAnalytics.logEvent('eventName');
FlurryAnalytics.logEvent('eventName', true);
FlurryAnalytics.logEvent('eventName', {param: 'true'});
FlurryAnalytics.logEvent('eventName', {param: 'true'}, true);
FlurryAnalytics.endTimedEvent('eventName');
FlurryAnalytics.endTimedEvent('eventName', {param: 'true'});
FlurryAnalytics.logPageView();
FlurryAnalytics.setUserId('userId');
FlurryAnalytics.setUserAge(28);
FlurryAnalytics.setUserGender('m');
// or
FlurryAnalytics.setUserGender('f');
Just submit a pull request!
Code and documentation copyright 2016 Dmitriy Kolesnikov. Code released under the MIT license.
FAQs
React Native wrapper for Flurry Analytics
The npm package react-native-flurry-analytics receives a total of 2 weekly downloads. As such, react-native-flurry-analytics popularity was classified as not popular.
We found that react-native-flurry-analytics 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.