Bir program geliştiriyorum, bildirimler kısmında bildirmi açınca direkt bildirim geliyor aslında tam saatinde gelmesi gerekiyor bunu nasıl ayarlayabilirim?
// Bildirimleri yapılandır
Notifications.setNotificationHandler({
handleNotification: async () => ({
shouldShowAlert: true,
shouldPlaySound: true,
shouldSetBadge: true,
}),
});
const schedulePrayerTime = async (vakit, time) => {
const [hours, minutes] = time.split(':');
return await Notifications.scheduleNotificationAsync({
content: {
title: "Namaz Vakti",
body: `${vakit.toUpperCase()} vakti girdi`,
sound: true,
},
trigger: {
hour: parseInt(hours),
minute: parseInt(minutes),
repeats: true,
},
});
};