Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
react-native-notifications
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
冷佳娟
react-native-notifications
Commits
34328162
Commit
34328162
authored
Oct 02, 2019
by
yogevbd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove NOTIFICATION_RECEIVED_FOREGROUND_EVENT_NAME
parent
6adee3e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
lib/android/app/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java
...tivenotifications/core/notification/PushNotification.java
+0
-8
No files found.
lib/android/app/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java
View file @
34328162
...
...
@@ -23,7 +23,6 @@ import com.wix.reactnativenotifications.core.ProxyService;
import
static
com
.
wix
.
reactnativenotifications
.
Defs
.
NOTIFICATION_OPENED_EVENT_NAME
;
import
static
com
.
wix
.
reactnativenotifications
.
Defs
.
NOTIFICATION_RECEIVED_EVENT_NAME
;
import
static
com
.
wix
.
reactnativenotifications
.
Defs
.
NOTIFICATION_RECEIVED_FOREGROUND_EVENT_NAME
;
public
class
PushNotification
implements
IPushNotification
{
...
...
@@ -64,9 +63,6 @@ public class PushNotification implements IPushNotification {
public
void
onReceived
()
throws
InvalidNotificationException
{
postNotification
(
null
);
notifyReceivedToJS
();
if
(
mAppLifecycleFacade
.
isAppVisible
())
{
notifiyReceivedForegroundNotificationToJS
();
}
}
@Override
...
...
@@ -199,10 +195,6 @@ public class PushNotification implements IPushNotification {
mJsIOHelper
.
sendEventToJS
(
NOTIFICATION_RECEIVED_EVENT_NAME
,
mNotificationProps
.
asBundle
(),
mAppLifecycleFacade
.
getRunningReactContext
());
}
private
void
notifiyReceivedForegroundNotificationToJS
()
{
mJsIOHelper
.
sendEventToJS
(
NOTIFICATION_RECEIVED_FOREGROUND_EVENT_NAME
,
mNotificationProps
.
asBundle
(),
mAppLifecycleFacade
.
getRunningReactContext
());
}
private
void
notifyOpenedToJS
()
{
mJsIOHelper
.
sendEventToJS
(
NOTIFICATION_OPENED_EVENT_NAME
,
mNotificationProps
.
asBundle
(),
mAppLifecycleFacade
.
getRunningReactContext
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment