Skip to content

Commit

Permalink
Merge pull request #1995 from gioragutt/patch-1
Browse files Browse the repository at this point in the history
fix: android missing channelId warning should now show
  • Loading branch information
Boris Tacyniak committed May 12, 2021
2 parents ace7b1d + ba6268e commit 7315f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}

Expand Down

0 comments on commit 7315f43

Please sign in to comment.