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
e271c0f7
Commit
e271c0f7
authored
Dec 02, 2016
by
Libin Lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove abort broadcast
parent
7543c6d9
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
30 deletions
+45
-30
android/react-native-fcm.iml
android/react-native-fcm.iml
+45
-26
android/src/main/java/com/evollu/react/fcm/FIRMessagingModule.java
...rc/main/java/com/evollu/react/fcm/FIRMessagingModule.java
+0
-4
No files found.
android/react-native-fcm.iml
View file @
e271c0f7
This diff is collapsed.
Click to expand it.
android/src/main/java/com/evollu/react/fcm/FIRMessagingModule.java
View file @
e271c0f7
...
@@ -138,9 +138,7 @@ public class FIRMessagingModule extends ReactContextBaseJavaModule implements Li
...
@@ -138,9 +138,7 @@ public class FIRMessagingModule extends ReactContextBaseJavaModule implements Li
public
void
onReceive
(
Context
context
,
Intent
intent
)
{
public
void
onReceive
(
Context
context
,
Intent
intent
)
{
if
(
getReactApplicationContext
().
hasActiveCatalystInstance
())
{
if
(
getReactApplicationContext
().
hasActiveCatalystInstance
())
{
String
token
=
intent
.
getStringExtra
(
"token"
);
String
token
=
intent
.
getStringExtra
(
"token"
);
sendEvent
(
"FCMTokenRefreshed"
,
token
);
sendEvent
(
"FCMTokenRefreshed"
,
token
);
abortBroadcast
();
}
}
}
}
},
intentFilter
);
},
intentFilter
);
...
@@ -208,7 +206,6 @@ public class FIRMessagingModule extends ReactContextBaseJavaModule implements Li
...
@@ -208,7 +206,6 @@ public class FIRMessagingModule extends ReactContextBaseJavaModule implements Li
}
}
}
}
sendEvent
(
"FCMNotificationReceived"
,
params
);
sendEvent
(
"FCMNotificationReceived"
,
params
);
abortBroadcast
();
}
}
}
}
...
@@ -223,7 +220,6 @@ public class FIRMessagingModule extends ReactContextBaseJavaModule implements Li
...
@@ -223,7 +220,6 @@ public class FIRMessagingModule extends ReactContextBaseJavaModule implements Li
public
void
onReceive
(
Context
context
,
Intent
intent
)
{
public
void
onReceive
(
Context
context
,
Intent
intent
)
{
if
(
getReactApplicationContext
().
hasActiveCatalystInstance
())
{
if
(
getReactApplicationContext
().
hasActiveCatalystInstance
())
{
sendEvent
(
"FCMNotificationReceived"
,
Arguments
.
fromBundle
(
intent
.
getExtras
()));
sendEvent
(
"FCMNotificationReceived"
,
Arguments
.
fromBundle
(
intent
.
getExtras
()));
abortBroadcast
();
}
}
}
}
},
intentFilter
);
},
intentFilter
);
...
...
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