From 1c20bd5a976fd054763a6cdce9be6348a3ab05f4 Mon Sep 17 00:00:00 2001 From: Andrey Bondarenko Date: Tue, 16 Feb 2021 14:53:17 +1000 Subject: [PATCH] bug --- .../yandex/metrica/plugin/reactnative/AppMetricaModule.java | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/yandex/metrica/plugin/reactnative/AppMetricaModule.java b/android/src/main/java/com/yandex/metrica/plugin/reactnative/AppMetricaModule.java index b75ad0f..4711b85 100644 --- a/android/src/main/java/com/yandex/metrica/plugin/reactnative/AppMetricaModule.java +++ b/android/src/main/java/com/yandex/metrica/plugin/reactnative/AppMetricaModule.java @@ -56,7 +56,8 @@ public class AppMetricaModule extends ReactContextBaseJavaModule { @ReactMethod public void initPush() { // YandexMetricaPush.init(reactContext); - getReactApplicationContext(), new FirebasePushServiceControllerProvider(getReactApplicationContext()) + YandexMetricaPush.init(getReactApplicationContext(), + new FirebasePushServiceControllerProvider(getReactApplicationContext())); } @ReactMethod diff --git a/package.json b/package.json index 4851f01..ab68f39 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-native-appmetrica-next", "title": "Yandex AppMetrica React Native Plugin && AppMetricaPushSDK (fireBase CloudMessage)", - "version": "1.0.11", + "version": "1.0.12", "description": "React Native plugin for AppMetrica analytics tool", "main": "index.js", "scripts": {