File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments