This article needs a little update.
Notifications.scheduleNotificationAsync({ content: { title: 'title here', body: 'text here', data: { url: screen //more data here } }, trigger: { repeats: false, seconds: 10, channelId: screen } });
Do you know the way to trigger a notification on a specific date in the future?
you can do something like this
trigger: { seconds: calculateSecondsToSpecifiedDate(date) }
and calculateSecondsToSpecifiedDate will return seconds
calculateSecondsToSpecifiedDate
Hope this helps you
Yes... a few days ago I did this. Thank you.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This article needs a little update.
Notifications.scheduleNotificationAsync({
content: {
title: 'title here',
body: 'text here',
data: {
url: screen
//more data here
}
},
trigger: {
repeats: false,
seconds: 10,
channelId: screen
}
});
Do you know the way to trigger a notification on a specific date in the future?
you can do something like this
and
calculateSecondsToSpecifiedDate
will return secondsHope this helps you
Yes... a few days ago I did this. Thank you.