Gathering detailed insights and metrics for react-native-voip-push-receiver
Gathering detailed insights and metrics for react-native-voip-push-receiver
npm install react-native-voip-push-receiver
Typescript
Module System
Node Version
NPM Version
24.7
Supply Chain
62.6
Quality
62.8
Maintenance
25
Vulnerability
65
License
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
1,342
Last Day
1
Last Week
2
Last Month
19
Last Year
154
Latest Version
1.0.3
Package Id
react-native-voip-push-receiver@1.0.3
Unpacked Size
11.80 kB
Size
3.98 kB
File Count
11
NPM Version
6.9.0
Node Version
9.11.2
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
100%
2
Compared to previous week
Last Month
46.2%
19
Compared to previous month
Last Year
3.4%
154
Compared to previous year
1
3
This package is for handling incoming voip push notifications on Android (for iOS, you can use this).
This package listens for FCM messages dispatched by your sip server when an incoming call is about to be routed. It is assumed that you already have notification handling configured for firebase in your react-native app. If you haven't yet, then start here.
$ npm install react-native-voip-push-receiver --save
$ react-native link react-native-voip-push-receiver
android/app/src/main/java/[...]/MainActivity.java
import com.ReactNativeVoipPushReceiver.RNVoipPushReceiverPackage;
to the imports at the top of the filenew RNVoipPushReceiverPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':react-native-voip-push-receiver'
project(':react-native-voip-push-receiver').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-voip-push-receiver/android')
android/app/build.gradle
:
compile project(':react-native-voip-push-receiver')
In AndroidManifest.xml
1... 2<service 3 android:name="com.ReactNativeVoipPushReceiver.RNVoipPushReceiverHandler" 4 android:exported="false"> 5 <intent-filter> 6 <action android:name="com.google.firebase.MESSAGING_EVENT" /> 7 </intent-filter> 8</service> 9... 10
1import { AndroidVoipPushReceiver } from 'react-native-voip-push-receiver'; 2 3... 4 5AndroidVoipPushReceiver.setNotificationReceivedListener(() => { 6 // Force your sip device to register when notification is received 7 this.handleRegisterSipDevice(); 8}); 9
No vulnerabilities found.
No security vulnerabilities found.