Hello, after following the tutorial steps, when running a React Native notification it does not work and presents an error in React Native version 0.63.3. Does anyone know tell me how to solve
?

Hi @naruto112
Please refer to the documentation and the Channel Management part.
Regards
Hi @Dallas62
This problem I was able to solve with using the following function:
PushNotification.createChannel (
{
channelId: "com.goairservice", // (required)
channelName: "com.goairservice", // (required)
channelDescription: "A channel to categorize your notifications", // (optional) default: undefined.
playSound: false, // (optional) default: true
soundName: "default", // (optional) See soundName parameter oflocalNotification function
importance: 4, // (optional) default: 4. Int value of the Android notification importance
vibrate: true, // (optional) default: true. Creates the default vibration patten if true.
},
(created) => console.log (createChannel returned '$ {created}') // (optional) callback returns whether the channel was created, false means it already existed.
);
Hi @Dallas62
This problem I was able to solve with using the following function:
PushNotification.createChannel (
{
channelId: "com.goairservice", // (required)
channelName: "com.goairservice", // (required)
channelDescription: "A channel to categorize your notifications", // (optional) default: undefined.
playSound: false, // (optional) default: true
soundName: "default", // (optional) SeesoundNameparameter oflocalNotificationfunction
importance: 4, // (optional) default: 4. Int value of the Android notification importance
vibrate: true, // (optional) default: true. Creates the default vibration patten if true.
},
(created) => console.log (createChannel returned '$ {created}') // (optional) callback returns whether the channel was created, false means it already existed.
);
Just replace com_id with my own project's id and rest is good to go
This did not work for me. Did someone else still encounter an error after creating the channel?
You need to create and use the channel by passing the channelId in the notification Payload or localNotification method.
"This didn't work for me" is not a message that help to debug, there is the same level of details as in: "An error occured".
Most helpful comment
Hi @Dallas62
This problem I was able to solve with using the following function:
PushNotification.createChannel (
{
channelId: "com.goairservice", // (required)
channelName: "com.goairservice", // (required)
channelDescription: "A channel to categorize your notifications", // (optional) default: undefined.
playSound: false, // (optional) default: true
soundName: "default", // (optional) See
soundNameparameter oflocalNotificationfunctionimportance: 4, // (optional) default: 4. Int value of the Android notification importance
vibrate: true, // (optional) default: true. Creates the default vibration patten if true.
},
(created) => console.log (
createChannel returned '$ {created}') // (optional) callback returns whether the channel was created, false means it already existed.);