Options

Incorrect notification I haven't added food to diary

I received a notification telling me I have not added food to my diary today. I already added servings of private recipes but no individual food items. The notification may be technically correct but I don't think this is the intention. I expect that if I have added servings of anything it would not need to remind me.

Comments

  • Options

    Are you calling somewhere in your code createNotificationChannel() method that should create the channel for notification? Because if not, the channel is not created, hence the toast message. You can call it before displaying the notification:

    public void displayNotification(){
    createNotificationChannel()
    NotificationCompat.Builder builder = new NotificationCompat.Builder(this,CHANNEL_ID);
    ...
    }

Sign In or Register to comment.