Closed shubhamdeol closed 5 years ago
should I try this
import { android } from 'expo-firebase-notifications';
const notification = new android.createChannel(channel);
this also didn't work
A little weird at the moment but try:
import { statics } from 'expo-firebase-notifications';
/* statics.Android.Channel */
const { Android } = statics;
/* Create a channel */
const channel = new Android.Channel(
'test-channel',
'Test Channel',
Android.Importance.Max
).setDescription('My apps test channel');
firebase.notifications().android.createChannel(channel);
I am using this code, but getting this warning "undefined not an object(evaluating 'new _expoFirebaseApp.default.notifications.Android.Channel'