From ba6268ec5ecd312f475ba14bfa0a3f445e714d2b Mon Sep 17 00:00:00 2001 From: Giora Guttsait Date: Wed, 12 May 2021 17:14:28 +0300 Subject: [PATCH] fix: android missing channelId warning should now show MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Small one, would have been caught by TypeScript easily 🤷🏻‍♂️ --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index ed181a259..dd79eece2 100644 --- a/index.js +++ b/index.js @@ -141,7 +141,7 @@ Notifications.unregister = function() { * @param {Object} details.userInfo - iOS ONLY: The userInfo used in the notification alert. */ Notifications.localNotification = function({...details}) { - if ('android' === Platform.os && details && !details.channelId) { + if ('android' === Platform.OS && details && !details.channelId) { console.warn('No channel id passed, notifications may not work.'); }