fix : firebase notification
Deskripsi: - empty array token undefined > semua fitur - update api version No Issues
This commit is contained in:
@@ -43,10 +43,8 @@ export async function sendFCMNotificationMany({ token, title, body, data }: { to
|
||||
},
|
||||
},
|
||||
};
|
||||
console.log("masuk", token.length, token)
|
||||
|
||||
if (token.length > 0) {
|
||||
console.log("Token", token.length)
|
||||
// Kirim pesan
|
||||
const response = await getMessaging().sendEachForMulticast(message as any);
|
||||
if (response.failureCount > 0) {
|
||||
|
||||
Reference in New Issue
Block a user