Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
react-native-fcm
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
ym
react-native-fcm
Commits
39e014a4
Commit
39e014a4
authored
Oct 12, 2016
by
Libin Lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
always broadcast notification before showing
parent
ad8c6f03
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
android/react-native-fcm.iml
android/react-native-fcm.iml
+0
-2
android/src/main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java
...in/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java
+4
-6
No files found.
android/react-native-fcm.iml
View file @
39e014a4
...
...
@@ -82,7 +82,6 @@
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/shaders"
isTestSource=
"true"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/annotations"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/assets"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/blame"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/bundles"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/classes"
/>
...
...
@@ -94,7 +93,6 @@
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/res"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/rs"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/shaders"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/symbols"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/transforms"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/outputs"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/tmp"
/>
...
...
android/src/main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java
View file @
39e014a4
...
...
@@ -155,12 +155,10 @@ public class FIRLocalMessagingHelper {
notification
.
setDefaults
(
NotificationCompat
.
DEFAULT_LIGHTS
);
}
if
(
mIsForeground
){
Log
.
d
(
TAG
,
"App is in foreground, broadcast intent instead"
);
Intent
i
=
new
Intent
(
"com.evollu.react.fcm.ReceiveLocalNotification"
);
i
.
putExtras
(
bundle
);
mContext
.
sendOrderedBroadcast
(
i
,
null
);
}
Log
.
d
(
TAG
,
"broadcast intent before showing notification"
);
Intent
i
=
new
Intent
(
"com.evollu.react.fcm.ReceiveLocalNotification"
);
i
.
putExtras
(
bundle
);
mContext
.
sendOrderedBroadcast
(
i
,
null
);
if
(!
mIsForeground
||
bundle
.
getBoolean
(
"show_in_foreground"
)){
Intent
intent
=
new
Intent
(
mContext
,
intentClass
);
...
...
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