Skip to content

Commit 3048679

Browse files
committed
update readme for exported constant wakeupByPush
1 parent 0b72635 commit 3048679

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,24 @@ class MyComponent extends React.Component {
113113
// register your VoIP client, show local notification, etc.
114114
// e.g.
115115
this.doRegister();
116+
117+
/* there is a boolean constant exported by this module called
118+
*
119+
* wakeupByPush
120+
*
121+
* you can use this constant to distinguish the app is launched
122+
* by VoIP push notification or not
123+
*
124+
* e.g.
125+
*/
126+
if (VoipPushNotification.wakeupByPush) {
127+
// do something...
128+
129+
// remember to set this static variable to false
130+
// since the constant are exported only at initialization time
131+
// and it will keep the same in the whole app
132+
VoipPushNotification.wakeupByPush = false;
133+
}
116134

117135
/**
118136
* Local Notification Payload

0 commit comments

Comments
 (0)