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
709b60df
Commit
709b60df
authored
Oct 03, 2016
by
Simon Lemieux
Committed by
Libin Lu
Oct 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add basic LED blinking support for local notifications on Android (#138)
parent
c3b2c718
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
README.md
README.md
+1
-0
android/src/main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java
...in/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java
+5
-0
No files found.
README.md
View file @
709b60df
...
...
@@ -264,6 +264,7 @@ class App extends Component {
tag
:
'
some_tag
'
,
// Android only
group
:
"
group
"
,
// Android only
my_custom_data
:
'
my_custom_field_value
'
,
// extra data you want to throw
lights
:
true
,
// Android only, LED blinking (default false)
});
FCM
.
scheduleLocalNotification
({
...
...
android/src/main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java
View file @
709b60df
...
...
@@ -150,6 +150,11 @@ public class FIRLocalMessagingHelper {
}
}
//lights
if
(
bundle
.
getBoolean
(
"lights"
))
{
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"
);
...
...
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