Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-android-sinch

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-android-sinch

react native android module for sinch flash call

  • 1.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-android-sinch

react native android module for sinch flash call

Installation

npm install react-native-android-sinch

yarn add react-native-android-sinch

Sinch version

com.sinch.android.sdk.verification:verification-flashcall:2.1.14

Usage

import SinchFlashCall from 'react-native-android-sinch';

/**
  * @description Request permissions for Manifest.permission.READ_PHONE_STATE, Manifest.permission.ACCESS_NETWORK_STATE, Manifest.permission.READ_CALL_LOG for the app to intercept the call
*/
const permissionStatus = SinchFlashCall.requestPermission().then((permission) => {
  console.log(permission)
})

/**
  * @description For testing purposes provide appSecret, for production it is not required,
  * Manifest.permission.READ_PHONE_STATE, Manifest.permission.ACCESS_NETWORK_STATE, Manifest.permission.READ_CALL_LOG is needed for verification to work.
*/
const verify = SinchFlashCall.initVerification('+12051111111', 'appKeyValue', 'appSecrete').then((result) => {
  console.log({result})
})

/**
  * @description add event listeners to subscribe to events during the verification process in Sinch Flash Call module.
*/
const listener = SinchFlashCall.addListener("verificationSuccess", (data) => {console.log("verificationSuccess", data)})

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

Keywords

FAQs

Package last updated on 05 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc