-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,12 @@ | ||
// Event to be sent from renderer process to trigger service start | ||
const START_NOTIFICATION_SERVICE = 'PUSH_RECEIVER:::START_NOTIFICATION_SERVICE'; | ||
// Event sent to the renderer process once the service is up | ||
const NOTIFICATION_SERVICE_STARTED = 'PUSH_RECEIVER:::NOTIFICATION_SERVICE_STARTED'; | ||
// Event sent to the renderer process if an error has occured during the starting process | ||
const NOTIFICATION_SERVICE_ERROR = 'PUSH_RECEIVER:::NOTIFICATION_SERVICE_ERROR'; | ||
// Event sent to the renderer processs when a notification has been received | ||
const NOTIFICATION_RECEIVED = 'PUSH_RECEIVER:::NOTIFICATION_RECEIVED'; | ||
// Event sent to the renderer processs when the FCM token has been updated | ||
const TOKEN_UPDATED = 'PUSH_RECEIVER:::TOKEN_UPDATED'; | ||
|
||
module.exports = { | ||
START_NOTIFICATION_SERVICE, | ||
NOTIFICATION_SERVICE_STARTED, | ||
NOTIFICATION_SERVICE_ERROR, | ||
NOTIFICATION_RECEIVED, | ||
TOKEN_UPDATED, | ||
// Event to be sent from renderer process to trigger service start | ||
START_NOTIFICATION_SERVICE: 'PUSH_RECEIVER:::START_NOTIFICATION_SERVICE', | ||
// Event sent to the renderer process once the service is up | ||
NOTIFICATION_SERVICE_STARTED: 'PUSH_RECEIVER:::NOTIFICATION_SERVICE_STARTED', | ||
// Event sent to the renderer process if an error has occured during the starting process | ||
NOTIFICATION_SERVICE_ERROR: 'PUSH_RECEIVER:::NOTIFICATION_SERVICE_ERROR', | ||
// Event sent to the renderer processs when a notification has been received | ||
NOTIFICATION_RECEIVED: 'PUSH_RECEIVER:::NOTIFICATION_RECEIVED', | ||
// Event sent to the renderer processs when the FCM token has been updated | ||
TOKEN_UPDATED: 'PUSH_RECEIVER:::TOKEN_UPDATED', | ||
}; |