ConnectyCube / connectycube-reactnative-samples

Chat and Video Chat code samples for React Native, ConnectyCube
https://connectycube.com
Apache License 2.0
125 stars 111 forks source link

How to change Android push notification icon #106

Closed sjwoodard closed 4 years ago

sjwoodard commented 4 years ago

I'm sending push notification via the ConnectyCube API. Android users notifications have the default Android icon. Where can I change that icon?

Thanks!

ccvlad commented 4 years ago

Hi @sjwoodard Usually an app's icons use, but some versions of Android (Oreo or Pie, do not really remember) need two-colors icon for notification. It doesn't related to ConnectyCube API. Did you set icons for your app? You are able to find the information via Google.

sjwoodard commented 4 years ago

I have the app icons set, and I'm seeing the issue on Andoird 8-10.

I was thinking the local notifications are called from within the ConnectyCube library which then uses https://github.com/zo0r/react-native-push-notification. The react-native-push-notification docs show how to change the icon, but I couldn't figure out how to pass the settings using the ConnectyCube React sample code.

ccvlad commented 4 years ago

Here we have icons in working app:

Снимок экрана 2020-08-10 в 11 33 05
sjwoodard commented 4 years ago

thanks for the help!