Me crearon una notificación local sin ningún otro tercero. Mi expectativa es que las notificaciones sean como un mensaje de WhatsApp flotante y que haya un botón de acción, una notificación de éxito, pero no una notificación emergente/flotante.
Notifications.setNotificationChannelAsync('location-reached', { name: 'location-reached', importance: Notifications.AndroidImportance.MAX, vibrationPattern: [0, 250, 250, 250], lightColor: '#FF231F7C', }); Notifications.setNotificationHandler({ handleNotification: async () => ({ shouldShowAlert: true, shouldPlaySound: true, shouldSetBadge: true, priority: "high", }), }); export const sendNotification = async (address) => { const id = await Notifications.scheduleNotificationAsync( { content: { title: `Destination will arrive soon`, body: address, sound: 'default', vibrate: true, }, trigger: { seconds: 1, channelId: 'location-reached' }, }); console.log("notif id on scheduling", id) return id; }