Skip to content

setOnAttributionChangeListener doesn't call #10

@HessiPard

Description

@HessiPard

Hi,
i can't get any data in callback of library listeners like setOnAttributionChangeListener, setOnDeeplinkResponseListener, ...
below you can see the code:

this._metrixConfig = new MetrixConfig(AppConfig.METRIX_API_KEY);

this._metrixConfig.setFirebaseId(AppConfig[`FIREBASE_${Platform.OS.toUpperCase()}_APP_ID`], AppConfig.FIREBASE_PROJECT_ID, AppConfig.FIREBASE_API_KEY);
this._metrixConfig.setStore(Config.VENDOR);

this._metrixConfig.setOnAttributionChangeListener((attributionModel) => {
	this._metrixAttributionModel = attributionModel;
	console.log('@@@', attributionModel)
});
this._metrixConfig.setOnReceiveUserIdListener((metrixUserId ) => {
	console.log('@@@', metrixUserId)
});
Metrix.getSessionNum((sessionNum) => {
	console.log('@@@', sessionNum)
});
Metrix.onCreate(this._metrixConfig);

setStore and setFirebaseId works and we can see the data in panel but listeners don't log any data !!

"@metrixorg/react-native-metrix": "^0.15.5",
"react": "16.11.0",
"react-native": "0.62.2",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions