change push sdk
This commit is contained in:
parent
4eb88f3e20
commit
d8f32092e8
@ -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
|
||||||
|
@ -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": {
|
||||||
|
Loading…
Reference in New Issue
Block a user