Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
fix: android missing channelId warning should now show
Browse files Browse the repository at this point in the history
Small one, would have been caught by TypeScript easily πŸ€·πŸ»β€β™‚οΈ
  • Loading branch information
gioragutt authored May 12, 2021
1 parent ace7b1d commit ba6268e
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

1 comment on commit ba6268e

@darryl-tan
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi bro, I have this warn "No channel id passed, notifications may not work."
here is my function,where is chnnelID, I just want to use localnotification ,how can i solve this promble?

const showNotification = (title,message)=>{
PushNotification.localNotification({
title:title,
message:message,

})

}

Please sign in to comment.