change push sdk

This commit is contained in:
Andrey Bondarenko 2021-02-15 15:31:22 +10:00
parent 4eb88f3e20
commit d8f32092e8
2 changed files with 5 additions and 2 deletions

View File

@ -19,6 +19,7 @@ import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.ReadableMap; import com.facebook.react.bridge.ReadableMap;
import com.yandex.metrica.YandexMetrica; import com.yandex.metrica.YandexMetrica;
import com.yandex.metrica.push.YandexMetricaPush; import com.yandex.metrica.push.YandexMetricaPush;
import com.yandex.appmetrica.push.firebase.FirebasePushServiceControllerProvider;
public class AppMetricaModule extends ReactContextBaseJavaModule { public class AppMetricaModule extends ReactContextBaseJavaModule {
@ -53,7 +54,9 @@ public class AppMetricaModule extends ReactContextBaseJavaModule {
@ReactMethod @ReactMethod
public void initPush() { public void initPush() {
YandexMetricaPush.init(reactContext); // YandexMetricaPush.init(reactContext);
YandexMetricaPush.init(reactContext,
new FirebasePushServiceControllerProvider(reactContext));
} }
@ReactMethod @ReactMethod

View File

@ -1,7 +1,7 @@
{ {
"name": "react-native-appmetrica-next", "name": "react-native-appmetrica-next",
"title": "Yandex AppMetrica React Native Plugin && AppMetricaPushSDK (fireBase CloudMessage)", "title": "Yandex AppMetrica React Native Plugin && AppMetricaPushSDK (fireBase CloudMessage)",
"version": "1.0.8", "version": "1.0.9",
"description": "React Native plugin for AppMetrica analytics tool", "description": "React Native plugin for AppMetrica analytics tool",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {