This commit is contained in:
Andrey Bondarenko 2021-02-16 14:43:09 +10:00
parent 052c8cf31c
commit 35de516c53
2 changed files with 5 additions and 2 deletions

View File

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

View File

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