react-native-amplitude-analytics | React Native iOS and Android wrapper for Amplitude | iOS library
kandi X-RAY | react-native-amplitude-analytics Summary
kandi X-RAY | react-native-amplitude-analytics Summary
React Native iOS and Android wrapper for Amplitude
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Log event with timestamp
- Converts a ReadableMap to a JSONObject
- Converts a ReadableArray into a JSONArray
- Logvenue
- Populate revenue
- Log event with properties
- Add a property to the map
- Set the threshold for event upload events
- Set the device ID
- Regenerates the device ID for the current platform
- Logs avenue error
- Log event
- Clears user properties
- Initialize
- Get device ID
- Append the specified property to the specified value
- Set map of user properties
- Get the current session id
- Prepend a value to the specified property
- Initialize the reactant
- Set a single property once
- Get user id
- Creates native modules
react-native-amplitude-analytics Key Features
react-native-amplitude-analytics Examples and Code Snippets
Community Discussions
Trending Discussions on react-native-amplitude-analytics
QUESTION
It was working fine before I have done nothing, no packages update, no gradle update no nothing just created new build and this error occurs. but for some team members the error occur after gradle sync.
The issue is that build is generating successfully without any error but when opens the app it suddenly gets crash (in both debug and release mode)
Error
...ANSWER
Answered 2022-Feb-25 at 23:22We have fixed the issue by replacing
QUESTION
I have a react-native project. After the bitnary (jcenter)
shutted down I started to replace it. Currently I'm using mavenCentral()
.
Also I'm using the react-native-intercom (wrapper for intercom)
.
When I'm trying to build gradlew assembleRelease
. Its throws me an error.
ANSWER
Answered 2022-Jan-23 at 12:38I solved it. If you are using the react-native-intercom wrapper. You need to update it, after update everything works fine
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react-native-amplitude-analytics
react-native link react-native-amplitude-analytics After you do that make sure that:
RNAmplitudeSDK.xcodeproj from node_modules/react-native-amplitude-analytics/ios is found within your Xcode Project as a subproject (if it's not add it manually with drag and drop).
libRNAmplitudeSDK.a is found within Linked Frameworks and Libraries under General tab (if it's not add it with the plus button) - (you don't need to add libAmplitude-iOS.a as that will be dealt with by Cocoapods in the next step).
Either
add the following line to your "Podfile": pod 'Amplitude-iOS', '~> 4.3.1' and run pod install or
download the Amplitude-iOS sdk from here and add it to your project manually. Make sure the Amplitude-iOS directory of the SDK is included in the root of your app's ios folder.
Run your project (Cmd+R)
Open up android/app/src/main/java/[...]/MainApplication.java
Add import com.sudoplz.reactnativeamplitudeanalytics.RNAmplitudeSDKPackage; to the imports at the top of the file.
Add new RNAmplitudeSDKPackage(MainApplication.this), to the list returned by the getPackages() method
Append the following lines to android/settings.gradle: include ':react-native-amplitude-analytics' project(':react-native-amplitude-analytics').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-amplitude-analytics/android')
Insert the following lines inside the dependencies block in android/app/build.gradle: compile 'com.amplitude:android-sdk:2.19.1' // native sdk of amplitude compile project(':react-native-amplitude-analytics') // our react-native module
Add permissions. If you haven't already, add the INTERNET permission to your manifest file: <uses-permission android:name="android.permission.INTERNET" />
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page