I am working on local notifcaitions. I am using SDK 43. I want to make a local scheduled notification and it triggers everyday with diffrent message. Unfortunately, it returns same message every notification. How can i return different message every notification. (It is a test code dismiss trigger time.)
let message = NOTIFICATION_MESSAGES[Math.floor(Math.random() * NOTIFICATION_MESSAGES.length)];
Notifications.scheduleNotificationAsync({
content: {
title: 'title',
body: message,
},
trigger: {
seconds: 60 * 1, // 1 minute
},
});