Giter Site home page Giter Site logo

Comments (9)

Ehesp avatar Ehesp commented on June 3, 2024 1

Hi - have you read: https://notifee.app/react-native/docs/android/appearance#high

from react-native-notifee.

motogod avatar motogod commented on June 3, 2024 1

Thanks for help, I miss the part !

It's not the problem now, thanks !

from react-native-notifee.

JulioOrellana avatar JulioOrellana commented on June 3, 2024

I am having the same issue.

Using importance hight but pop up still not showing

"dependencies": {
    "@notifee/react-native": "^0.5.1",
    "react": "16.11.0",
    "react-native": "0.62.2",
    "react-native-error-boundary": "^1.1.0"
  },

const onDisplayNotification = async () => {
  // Create a channel
  const channelId = await notifee.createChannel({
    id: 'default',
    name: 'Default Channel',
    importance: Importance.HIGH,
    badge: true,
    visibility: AndroidVisibility.PUBLIC,
  });

  // Display a notification
  await notifee.displayNotification({
    title: 'Notification Title',
    body: 'Main body content of the notification',
    android: {
      channelId,
      importance: Importance.HIGH,
      visibility: AndroidVisibility.PUBLIC,
    },
  });
};

I can't make it work

from react-native-notifee.

motogod avatar motogod commented on June 3, 2024

@JulioOrellana

In my comment, id and name must be important.
Hope it can help.

Here is my code:

// Create a channel , id  and name must be important and then show the Android  dialog
      const channelId = await notifee.createChannel({
        id: 'important',
        name: 'Important Notifications',
        importance: Importance.HIGH,
        badge: true,
      });
      // pressAction support click trigger
      await notifee.displayNotification({
        title: title,
        body: body,
        data,
        android: {
          channelId,
          pressAction: {
            launchActivity: "default",
            id: "default",
          },
        },
        importance: Importance.HIGH,
        badgeIconType: AndroidBadgeIconType.SMALL,
        ios: {
          importance: Importance.HIGH,
        },
      });
    });

from react-native-notifee.

JulioOrellana avatar JulioOrellana commented on June 3, 2024

@motogod Hello!, yes I have id and name in createChannel method but pop-up is not showing, do you need any <meta-data/> in AndroidManifest.xml?

from react-native-notifee.

Ehesp avatar Ehesp commented on June 3, 2024

Can you show a screenshot of the channel on the actual device app notification settings?

from react-native-notifee.

JulioOrellana avatar JulioOrellana commented on June 3, 2024

You mean this?

9124efde-f8d6-4afb-9db7-cb6aa2ddf5ef

from react-native-notifee.

Ehesp avatar Ehesp commented on June 3, 2024

Yeah, what's inside of the Default Channel settings?

from react-native-notifee.

JulioOrellana avatar JulioOrellana commented on June 3, 2024

@Ehesp thanks for your time. Android J6

default_channel
channel_name

from react-native-notifee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.