Open your strings.xml file and add a new string with the name "truecaller_appkey" and value as your "appKey" as obtained from the truecaller dashboard after creating you app. Open your AndroidManifest.xml file and add the following meta-data element to the application element. Once created, you will get a truecaller appkey which you need to add in your react native app. as they will have a different SHA1 fingerprint) (Note that you will need to create a separate app for each of your builds. To create this app you will need to provide the package name and the SHA1 fingerprint of your react native app. This app will be used by truecaller to identify your application. You will need to login and create an app on truecaller. Npm link react-native-truecaller-sdk Setup and Configurationīefore proceeding, head on over to the truecaller developer portal ( ) and register there if you haven't done so already. Then run the following command to link the package Npm install react-native-truecaller-sdk -save Run the following command to install the package: If the user accepts the consent request, his truecaller profile data is shared with your app and you can continue with the login (The CTA is not required to trigger the consent request, you can do it directly too if needed!) When the user opens your app and chooses to authenticate via truecaller (based on your provided CTA button), a standard truecaller consent box is shown to him. The user needs to have the truecaller app installed on his device and he must be logged in to the truecaller app. The typical authentication flow using truecaller would be as follows: (Note: Supports only android for now) Truecaller Authentication Flow This module exposes all the functionality available in the android-sdk for use in your react native app. Truecaller can be used as an alternate method of authenticating users for login/signup. This will download and install the newest Dynamic Yield iOS SDK.A react native module for Truecaller SDK Integration. Just run pod update from the command line. To use new features, you need to update the Dynamic Yield SDK installed in your app. The Dynamic Yield SDK is updated periodically and is always backwards compatible.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |