flurry / react-native-flurry-sdk

React Native Flurry SDK
Apache License 2.0
45 stars 13 forks source link

Retrieve Device Token #35

Closed nidhinprathap closed 3 years ago

nidhinprathap commented 3 years ago

Is there a way to retrieve the device push notification token?

Below Method "onTokenRefresh" gets fired before I can add a messaging listener, so the event is never triggered as sEnableMessagingListener false at that time.

@Override
        public void onTokenRefresh(String token) {
            if (sEnableMessagingListener && (sReactApplicationContext != null)) {
                sendEvent(EventType.TokenRefresh, token);
            }
        }