1.0.3 • Published 2 years ago

react-native-clickzin v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

CLickzin react android tracking sdk

#This SDK is the wrapper around google play store referrer library which is used to get android referrer information

#This below permission is already added to the sdk which is a pre requisite for the play store referrer library

#

Steps to integrate SDK #

Step 1: Add dependency to the project by using below cmd

    npm i react-native-clickzin

Step 2: Usage PlayInstallReferrer,call getInstallReferrerInfo static method of PlayInstallReferrer class

In order to obtain install referrer details, call getInstallReferrerInfo static method of AndroidInstallReferrer class

    import { PlayInstallReferrer } from 'react-native-play-install-referre;
    PlayInstallReferrer.getInstallReferrerInfo((info, error) => {
            if (!error) {
                            console.log("Install referrer = " + info.installReferrer);
                            console.log("Referrer click timestamp seconds = " + info.referrerClickTimestampSeconds);
                            console.log("Install begin timestamp seconds = " + info.installBeginTimestampSeconds);
                            console.log("Referrer click timestamp server seconds = " + info.referrerClickTimestampServerSeconds);
                            console.log("Install begin timestamp server seconds = " + info.installBeginTimestampServerSeconds);
                            console.log("Install version = " + info.installVersion);
                            console.log("Google Play instant = " + info.googlePlayInstant);
                        } else {
                                console.log("Failed to get install referrer info!");
                                console.log("Response code: " + error.responseCode);
                                onsole.log("Message: " + error.message);
                                }
    });

Step 3: get details if successfully obtained, map with content of referrer like referrer key, install version

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago