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
53df632d
Commit
53df632d
authored
Jul 31, 2017
by
Libin Lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
import fix
parent
bac85ddb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
android/src/main/java/com/evollu/react/fcm/MessagingService.java
.../src/main/java/com/evollu/react/fcm/MessagingService.java
+7
-0
No files found.
android/src/main/java/com/evollu/react/fcm/MessagingService.java
View file @
53df632d
...
@@ -3,8 +3,13 @@ package com.evollu.react.fcm;
...
@@ -3,8 +3,13 @@ package com.evollu.react.fcm;
import
java.util.Map
;
import
java.util.Map
;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.os.Handler
;
import
android.os.Looper
;
import
android.util.Log
;
import
android.util.Log
;
import
com.facebook.react.ReactApplication
;
import
com.facebook.react.ReactInstanceManager
;
import
com.facebook.react.bridge.ReactContext
;
import
com.google.firebase.messaging.FirebaseMessagingService
;
import
com.google.firebase.messaging.FirebaseMessagingService
;
import
com.google.firebase.messaging.RemoteMessage
;
import
com.google.firebase.messaging.RemoteMessage
;
...
@@ -23,6 +28,8 @@ public class MessagingService extends FirebaseMessagingService {
...
@@ -23,6 +28,8 @@ public class MessagingService extends FirebaseMessagingService {
handleBadge
(
remoteMessage
);
handleBadge
(
remoteMessage
);
buildLocalNotification
(
remoteMessage
);
buildLocalNotification
(
remoteMessage
);
final
Intent
message
=
i
;
// We need to run this on the main thread, as the React code assumes that is true.
// We need to run this on the main thread, as the React code assumes that is true.
// Namely, DevServerHelper constructs a Handler() without a Looper, which triggers:
// Namely, DevServerHelper constructs a Handler() without a Looper, which triggers:
// "Can't create handler inside thread that has not called Looper.prepare()"
// "Can't create handler inside thread that has not called Looper.prepare()"
...
...
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