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
c3b2c718
Commit
c3b2c718
authored
Sep 30, 2016
by
Libin Lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix java warning
parent
59e22454
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
android/src/main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java
...in/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java
+3
-4
android/src/main/java/com/evollu/react/fcm/FIRMessagingModule.java
...rc/main/java/com/evollu/react/fcm/FIRMessagingModule.java
+1
-1
No files found.
android/src/main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java
View file @
c3b2c718
...
...
@@ -238,14 +238,13 @@ public class FIRLocalMessagingHelper {
//store intent
SharedPreferences
.
Editor
editor
=
sharedPreferences
.
edit
();
JSONObject
json
=
null
;
try
{
json
=
BundleJSONConverter
.
convertToJSON
(
bundle
);
JSONObject
json
=
BundleJSONConverter
.
convertToJSON
(
bundle
);
editor
.
putString
(
notificationId
,
json
.
toString
());
editor
.
apply
();
}
catch
(
JSONException
e
)
{
e
.
printStackTrace
();
}
editor
.
putString
(
notificationId
,
json
.
toString
());
editor
.
apply
();
}
public
void
cancelLocalNotification
(
String
notificationId
)
{
...
...
android/src/main/java/com/evollu/react/fcm/FIRMessagingModule.java
View file @
c3b2c718
...
...
@@ -144,7 +144,7 @@ public class FIRMessagingModule extends ReactContextBaseJavaModule implements Li
Map
<
String
,
String
>
data
=
message
.
getData
();
Set
<
String
>
keysIterator
=
data
.
keySet
();
for
(
String
key:
keysIterator
){
params
.
putString
(
key
,
(
String
)
data
.
get
(
key
));
params
.
putString
(
key
,
data
.
get
(
key
));
}
}
sendEvent
(
"FCMNotificationReceived"
,
params
);
...
...
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