This repository was archived by the owner on Apr 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -70,11 +70,6 @@ export function getCurrentPushToken() {
7070export 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) {
10297export 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 => {
You can’t perform that action at this time.
0 commit comments