cordova-plugin-firebasex icon indicating copy to clipboard operation
cordova-plugin-firebasex copied to clipboard

Add channel name in documentation

Open LazzeZee opened this issue 4 years ago • 5 comments

When adding notification channel there should be a channel name to avoid IllegalArgumentException:

var channel  = {
    name: "my_channel_name,
    id: "my_channel_id",
    sound: "mysound",
    vibration: true,
    light: true,
    lightColor: parseInt("FF0000FF", 16).toString(),
    importance: 4,
    badge: true,
    visibility: 1
};

FirebasePlugin.createChannel(channel,
function(){
    console.log('Channel created: ' + channel.id);
},
function(error){
   console.log('Create channel error: ' + error);
});

LazzeZee avatar Nov 18 '20 07:11 LazzeZee

This occurs to me too, waste some time to find it. It is right that the name is mandatory.

evangunawan avatar Dec 17 '20 09:12 evangunawan

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 12 '21 14:05 stale[bot]

Reopening as stalebot incorrectly closed it

dpa99c avatar Jul 23 '21 11:07 dpa99c

This happening with me too. I get the example on README and only modify the sound name. image image

DioxideHydrogen avatar Aug 06 '21 15:08 DioxideHydrogen

So, come back here, i discover that for some reason that i dont know why, in emulator i can't create the channel, why when i runed the cordova project in my phone, the chanel was properly created. This must be a dependecy (idk) that by default is not installed in emulator.

DioxideHydrogen avatar Aug 12 '21 12:08 DioxideHydrogen