Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit c5c1cd6

Browse files
Add a step to include authentication libraries (default 'true') #904
1 parent 7c62b65 commit c5c1cd6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/messaging/messaging.android.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,6 @@ export function getCurrentPushToken() {
7070
export function addOnMessageReceivedCallback(callback) {
7171
return new Promise((resolve, reject) => {
7272
try {
73-
if (typeof (com.google.firebase.messaging) === "undefined") {
74-
reject("Uncomment firebase-messaging in the plugin's include.gradle first");
75-
return;
76-
}
77-
7873
firebase._receivedNotificationCallback = callback;
7974

8075
org.nativescript.plugins.firebase.FirebasePlugin.setOnNotificationReceivedCallback(
@@ -102,11 +97,6 @@ export function addOnMessageReceivedCallback(callback) {
10297
export function addOnPushTokenReceivedCallback(callback) {
10398
return new Promise((resolve, reject) => {
10499
try {
105-
if (typeof (com.google.firebase.messaging) === "undefined") {
106-
reject("Uncomment firebase-messaging in the plugin's include.gradle first");
107-
return;
108-
}
109-
110100
org.nativescript.plugins.firebase.FirebasePlugin.setOnPushTokenReceivedCallback(
111101
new org.nativescript.plugins.firebase.FirebasePluginListener({
112102
success: token => {

0 commit comments

Comments
 (0)