File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -198,9 +198,9 @@ class MyComponent extends React.Component {
198
198
}
199
199
for (let voipPushEvent of events) {
200
200
let { name, data } = voipPushEvent;
201
- if (name === ' RNVoipPushRemoteNotificationsRegisteredEvent' ) {
201
+ if (name === VoipPushNotification . RNVoipPushRemoteNotificationsRegisteredEvent ) {
202
202
this .onVoipPushNotificationRegistered (data);
203
- } else if (name === ' RNVoipPushRemoteNotificationReceivedEvent' ) {
203
+ } else if (name === VoipPushNotification . RNVoipPushRemoteNotificationReceivedEvent ) {
204
204
this .onVoipPushNotificationiReceived (data);
205
205
}
206
206
}
Original file line number Diff line number Diff line change @@ -18,6 +18,18 @@ const RNVoipPushDidLoadWithEvents = "RNVoipPushDidLoadWithEvents"; // --- 'didLo
18
18
19
19
export default class RNVoipPushNotification {
20
20
21
+ static get RNVoipPushRemoteNotificationsRegisteredEvent ( ) {
22
+ return RNVoipPushRemoteNotificationsRegisteredEvent ;
23
+ }
24
+
25
+ static get RNVoipPushRemoteNotificationReceivedEvent ( ) {
26
+ return RNVoipPushRemoteNotificationReceivedEvent ;
27
+ }
28
+
29
+ static get RNVoipPushDidLoadWithEvents ( ) {
30
+ return RNVoipPushDidLoadWithEvents ;
31
+ }
32
+
21
33
/**
22
34
* Attaches a listener to remote notification events while the app is running
23
35
* in the foreground or the background.
You can’t perform that action at this time.
0 commit comments