I have an app and I want to set a reminder to open the app it is the same native reminder.
eg: when user set reminder is 7:00 AM and every day my app will alarm.
My idea is to create a notification and the app will be opened by another library when listening to the notif. I want my app will auto-open when the lock screen opens. Maybe It is only possible on android. I need some solutions. Thanks a lot!
I believe the react-native-push-notification will help you. visit the "Scheduled Notifications" part. after the scheduled time when the notification appears on the screen, user can open the app by pressing the notification
So, Any one looking for the solution for both the platform to invoke native notification here is the library that does most of the work behind the scenes.
https://www.npmjs.com/package/react-native-calendar-events
Related
I am using Expo to build an app that will pop up a notification with custom sound and vibration when triggered remotely. The alarm/vibration would play until its dismissed by the user or it times out (say after 1-2 mins) .
Example use case would be when a partner needs my immediate help with baby, they can press a button the app and that would send signal to backend server which would then trigger the notification with alarm on the app at the other end. When the notification is dismissed, an acknowledgement message is sent with Yes or No type message. If the notification times out, then another message is sent like "no response".
Key point to note is that when the app is fully closed, the notification should still be able to pop up.
From my limited understanding , expo notification or push notifications in general cannot achieve this as they don't allow us to create notifications that directly open the app. Even a solution which works like phone or video calling apps (which open when someone calls you ) could work.
Any help would be much appreciated.
Many Thanks!
I looked up expo push notifications but they are limited in terms of customising the notifications.
I am using push notifications but my requirement is that it will show push notification automatically at 4:00pm, 10:00am but I didn't found any good package for react native so if any body have experience with local notification share with me.
https://github.com/zo0r/react-native-push-notification
u can try scheduled notifications for that.
I'm working on a React Native app where I need to send recurring push notifications at specific times. So for example, the user will toggle the app to remind them to do task X every day at 12:00pm and I want the app to send a push notification at 12:00pm (when the app is in the background) to remind the user to complete task X.
For the React Native app, I'm using expo and I've read up on their documentation; however, I'm not quite sure how to handle these reminders.
a) I don't know how to monitor recurring events, i.e. how can I set up the app to know when it's 12:00pm, especially given that the app will be running in the background or potentially not running at all, and
b) I'm not sure if these push notifications should be sent locally within the app or from the app's API/server.
Ideally, I would like to use expo's push notification feature, but I'm open to any suggestions as to how to get this set up! Thanks.
a. ) You should look into node-cron or node-schedule for scheduled push notifications.
b.) It depends on the situation. If you are performing a complicated reminder, such as running a query to check if the task is completed, and sending a notification if it is not completed, then the scheduled push notifications should be sent remotely from the api/server. Else, you can use the react-native push notification to send a local scheduled notification.
I am developing an app which enables pushNotification.When the app in inactive mode it receives push notification.When user click push notification app is opening.I do not want to open the app on push notification clicking.Is it possible do so?thanks in advance
There is no way to do this. Why do you want to do it anyway? You should probably use sound notification instead of banner/alert if you don't want user interaction.
As we know, at windows 8 if user is at start screen or another store app (metro app) UI, the dialog at the desktop won't be visible to user. We are adding some toast notification capability at our application by following Sending toast notifications from desktop apps sample. I am able to get it working. However if user is already at the desktop, we don't want to send out the toast notification. So it would mean that we need to be able to detect if user is current at desktop or not. Somehow I didn't find any API by searching on internet. Could someone let me know how to do so? Thanks very much.
A toast notification can't know in what context the user is located, so this is not possible.