You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add push / registration methods; update readme and typescript defs; add tvOS support, update iOS and Android SDK; make podspec package.json driven; add fine grained in-app message control; add opt in / out tracking; add autolinking information; Expose iOS params that can be passed on Mixpanel instance initalization: trackCrashes, automaticPushTracking, launchOptions; add Changelog (davide-scalzo#180)
* Update Android SDK to 5.6.0
* Lock iOS podspec to 3.4.4
* Updater package
* Update Readme
* Change implementation to api within gradle build
* Update iOS Mixpanel to 3.4.5
* Lock iOS podspec to 3.4.5
* Update npm version
* Update gitignore - add prefs and vsc project
* Update index.d.ts - add clearSuperProperties
* Add support for clearing a single registration id on Android
* Udpate index.d.ts
* [iOS] Pass deviceToken as string to `removePushDeviceToken` as it's convinient way to de-register iOS device
* Update readme
* Update npm version
* Update README.md
* [Android] Retrieves current Firebase Cloud Messaging token
* Update readme.md and index.d.ts
* [Android] Add getPushRegistrationId
* Add missing definition
* Update README.md
* Update definitions and error messages
* Update Android SDK to 5.6.3
* Update iOS podspec to 3.4.7
* Update npm version
* Update dependencies version
* [iOS] Podspec should take velues from package.json
* Added support for tvOS
* Add append method; update readme.md
* Update Mixpanel.h
* Added fine grained in-app message control
* Add Opting Out / In
The later versions of Mixpanel have the ability to opt in/out of collecting data for GDPR purposes. This adds support for those as well as updating the Mixpanel library.
* Update version
* Update doc
* Add information about Autolinking
* Add missing Platform import
* Update readme; add changelog
* Expose iOS params that can be passed on Mixpanel instance initalization: trackCrashes, automaticPushTracking, launchOptions
* Fix typo
Copy file name to clipboardExpand all lines: README.md
+134-7Lines changed: 134 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,12 @@ From version 1.1.2 module uses Mixpanel SDK >= 5.6.0 that requires FCM
24
24
- Allow sub-classes to override push notifications payload and Support when more than one push provider is used [more info here](https://github.com/mixpanel/mixpanel-android/releases/tag/v5.5.1)
25
25
26
26
27
+
# Autolinking and RN >= 0.60
28
+
29
+
Autolinking should work out of the box.
30
+
31
+
Remember to do: pod install.
32
+
27
33
# Manual Installation
28
34
29
35
## Installation iOS ##
@@ -81,12 +87,48 @@ public class MainActivity extends ReactActivity {
// @param optOutTrackingByDefault - whether or not to be opted out from tracking by default (default value: false)
105
+
// @param trackCrashes (iOS only!) - whether or not to track crashes in Mixpanel. may want to disable if you're seeing issues with your crash reporting for either signals or exceptions (default value: true)
// @param optOutTrackingByDefault - whether or not to be opted out from tracking by default (default value: false)
111
+
// @param trackCrashes (iOS only!) - whether or not to track crashes in Mixpanel. may want to disable if you're seeing issues with your crash reporting for either signals or exceptions (default value: true)
112
+
// @param automaticPushTracking (iOS only!) - whether or not to automatically track pushes sent from Mixpanel (default value: true)
// @param optOutTrackingByDefault - whether or not to be opted out from tracking by default (default value: false)
118
+
// @param trackCrashes (iOS only!) - whether or not to track crashes in Mixpanel. may want to disable if you're seeing issues with your crash reporting for either signals or exceptions (default value: true)
119
+
// @param automaticPushTracking (iOS only!) - whether or not to automatically track pushes sent from Mixpanel (default value: true)
//tell Mixpanel which user record in People Analytics should receive the messages when they are sent from the Mixpanel app,
134
-
//make sure you call this right after you call `identify`
186
+
// Android
187
+
// tell Mixpanel which user record in People Analytics should receive the messages when they are sent from the Mixpanel app,
188
+
// make sure you call this right after you call `identify`
189
+
// Deprecated.
190
+
// in 5.5.0. Google Cloud Messaging (GCM) is now deprecated by Google. To enable end-to-end Firebase Cloud Messaging (FCM) from Mixpanel you only need to add the following to your application manifest XML file:
// Unregister the given device to receive push notifications.
242
+
Mixpanel.removeAllPushDeviceTokens();
142
243
143
244
// Mixpanel reset method (warning: it will also generate a new unique id and call the identify method with it. Thus, the user will not be anonymous in Mixpanel.)
144
245
Mixpanel.reset();
@@ -148,5 +249,31 @@ Mixpanel.reset();
148
249
Mixpanel.getDistinctId(function(id){})
149
250
```
150
251
252
+
## Displaying in-app messages ##
253
+
254
+
By default, in-app messages are shown to users when the app starts and a message is available to display
255
+
This behaviour can be disabled by default, and explicitally triggered at a later time (e.g. after your loading sequence)
256
+
257
+
For iOS, in your app delegate, add the following line:
0 commit comments