Skip to content

Commit

Permalink
Merge pull request #7 from lorenc-tomasz/1.2.6
Browse files Browse the repository at this point in the history
1.2.6
  • Loading branch information
lorenc-tomasz authored Sep 13, 2020
2 parents e88dad7 + 7039ff0 commit 90d4f3e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# 1.2.6

- Fix issue with `showInAppMessageIfAvailable()` that throws "Unhandled promise rejection", ReferenceError : Can't find variable: token

# 1.2.5

- [iOS][tvOS] deployment_target changed to 10.0
- [Android] Update SDK to 5.8.4 (https://github.com/mixpanel/mixpanel-android/releases/tag/v5.8.4)
- [Android] Add option to disable automatic flushing when the app goes into the background. Add the following to you <application> tag on your AndroidManifest.xml if you don't want the SDK to automatically flush its queues when the app goes into the background: (https://github.com/mixpanel/mixpanel-android/releases/tag/v5.8.3)
- [iOS] Update SDK to 3.6.2 (https://github.com/mixpanel/mixpanel-iphone/releases/tag/v3.6.2)
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ export default {

showInAppMessageIfAvailable() {
if (!defaultInstance) throw new Error(NO_INSTANCE_ERROR)
defaultInstance.showInAppMessageIfAvailable(token)
defaultInstance.showInAppMessageIfAvailable()
},

optInTracking() {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-mixpanel",
"version": "1.2.5",
"version": "1.2.6",
"description": "A React Native wrapper for Mixpanel tracking",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit 90d4f3e

Please sign in to comment.