Skip to content

Commit 1fa3bd6

Browse files
author
Quoc Khanh
committed
add timeout param to dismiss incoming call
1 parent c6c0e8d commit 1fa3bd6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ messaging().setBackgroundMessageHandler(async remoteMessage => {
9999
'callUUIDv4', // Call UUID v4
100100
'Quocs', // Username
101101
'https://avatars3.githubusercontent.com/u/16166195', // Avatar URL
102-
'Incomming Call' // Info text
102+
'Incomming Call', // Info text
103+
20000 // Timeout for end call after 20s
103104
);
104105
} else if (remoteMessage?.notification?.title === 'Missed Call') {
105106
// Terminate incoming activity. Should be called when call expired.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-native-incoming-call",
33
"title": "React Native Incoming Call",
4-
"version": "2.0.2",
4+
"version": "2.0.3",
55
"description": "React Native module to display incoming call activity. Only for Android since iOS we have VoIP.",
66
"main": "index.js",
77
"scripts": {

0 commit comments

Comments
 (0)