Questions tagged [expo-notifications]

114 questions
0
votes
0 answers

Is it possible to access incoming deep link URL before `` is reached?

I have two ways of navigating to my mobile app. On click of push notification From web app of mobile browser, on click of Open in app, my mobile app should be launched and routed to specific screen. In 2nd case, the issue is to auto SignIn user,…
0
votes
0 answers

expo-notifications SDK 45.0 addNotificationResponseReceivedListener not working on iOS

I'm using expo-notifications on Expo SDK 45.0 and as per the docs, addNotificationResponseReceivedListener should return the data from the push notification (PN) when the user taps on it. This works great on Android but on iOS, the push notification…
0
votes
0 answers

Expo - React Native: Notification triggered from sqlite table

Tech: Expo for React Native App. I have a database initialized when app loads export function initDatabase() { const promise = new Promise((resolve, reject) => { database.transaction((tx) => { tx.executeSql( `CREATE TABLE IF NOT…
myselfmiqdad
  • 2,518
  • 2
  • 18
  • 33
0
votes
1 answer

Expo app opens and then crashes when app is closed and notification is clicked [android]

My react native Expo android app always crashes when the app is closed/not running and a notification is clicked. It opens up showing the splashscreen and then crashes after a few seconds If the app is already opened when the notification is…
0
votes
0 answers

Schedule a notification daily except saturday, and sunday, Expo notification

I'm trying to set a schedule once a day at nine a clock but I want to exclude weekends. I'm using expo notifications in react native: const scheduleDailyNotifications = async () => { await Notifications.cancelAllScheduledNotificationsAsync(); …
Erjon
  • 923
  • 2
  • 7
  • 32
0
votes
1 answer

Make scheduled local notification in react native/expo repeat every year at a specific month, day and time using expo-notification

I have the following code to send a birthday reminder: await Notifications.scheduleNotificationAsync({ content: { title: "Its NAME's birthday today!", body: "Don't forget to wish a happy birthday", sound: true, …
Bimal Pandey
  • 93
  • 2
  • 8
0
votes
1 answer

How to change whether or not to receive notifications within the expo app

I am receiving push notifications via expo-notification. I created a button within the app that allows you to set whether or not to receive notifications. The desired behavior is: If this button is on, the app will receive push notifications. When…
extradeck
  • 366
  • 1
  • 5
  • 19
0
votes
1 answer

Error when trying to get expo notification token (Not valid firebase project ID)

I'm trying to use expo notification service to create push notifications in my app. I followed the setup guide in the official docs: https://docs.expo.dev/push-notifications/push-notifications-setup/ However I'm getting the following error instead…
0
votes
0 answers

Error with React Native Expo Notifications

I am using Exp notifications, and works fine for all of my users. However a few of my users get this error "Error Domain=UNErrorDomain Code=1 "Notifications are not allowed for this application" UserInfo={NSLocalizedDescription=Notifications are not…
0
votes
2 answers

TypeError: Notifications.getPermissionsAsync is not a function. Expo Notifications

I'm trying to send push notifications using expo-notifications. I'm using the example in the documentation and it works very well with javascript. When I try it in typescript it gives me the error: [Unhandled promise rejection: TypeError:…
crispengari
  • 7,901
  • 7
  • 45
  • 53
0
votes
0 answers

Using expo-notifications to produce a notification daily at a random time

Hi so I've been experimenting with the expo-notifications library all day and firstly it's really neat however I've run into a bit of an obstacle and that is scheduling a notification that repeats daily but at a random time and shows different data…
Jack
  • 11
  • 4
0
votes
0 answers

expo-notification on Sumni V2 device not working

I recently purchased a Sunmi V2 device for a client, and I am trying to print something when I receive a notification from expo-notification using react-native. I have successfully implemented this in another application, but I am having difficulty…
Shkunn
  • 41
  • 2
0
votes
0 answers

Expo Notification on Android

I have setup the expo push notification in my app. I am able to get the device token for both android and ios in my expo go app. when i publish my app to test-flight i am able to get the device token as well. But when i publish the app to PLaystore…
prof lord
  • 1
  • 4
0
votes
1 answer

Expo React Native - How can I send a notification only once at a specific date?

In documentation I cannot see how I can choose a specific date, even though its mentioned its possible. All I see is: async function schedulePushNotification() { await Notifications.scheduleNotificationAsync({ content: { title: "You've…
user6377312
0
votes
0 answers

Disable local notifications on button press in Expo / react-native

I have an Expo app (which has been ejected but there is very little native code being used). I am using expo-notifications to schedule local notifications for the user. I am only doing this for background/killed state notifications. There are no…
adrian
  • 2,786
  • 2
  • 18
  • 33