React-native-push-notification: Notification not triggering in android

Created on 19 Jan 2021  路  7Comments  路  Source: zo0r/react-native-push-notification

I'm using
react-native: 0.63.4
buildToolsVersion = "29.0.2"
minSdkVersion = 21
compileSdkVersion = 29
targetSdkVersion = 29

When I trigger the PushNotification.localNotification method i cannot see the notification alert instead getting error alert as developer warning for package com.xx.xx failed to post notification on channel fcm_fallback_notification_channel see log for more details. Also I want to mention that i am using for local notification not remote notification, i didn't add any firebase or google configurations.

All 7 comments

Already answered, please search in issue history.
Regards

@Dallas62 can you send me the issue number?

@Dallas62 please highlight the issue number

Hi @donny08 @NoumanSakhawat

The issue has been answered like 50times, you should get the answer easily.
The answer about why it's not working is also in the readme.

Regards.

@Dallas62 After creating a channel and sending notification on that channel id is working for me on android, but createChannel method is not triggering in ios simulator and notification not working. Can suggest any workaround for this problem?

Channels are only for android, you can look at exemple project.
https://developer.android.com/training/notify-user/channels

@Dallas62 Can let me know how to debug for ios notification, so i get actual error

Was this page helpful?
0 / 5 - 0 ratings