Can the user set the time the push alarm sounds on the pwa? Also, can you make the alarm persist? - react-native

Hello I am trying to build a webapp using pwa.
I am trying to set an alarm by giving an app push at a time set by the user.
I have a few questions, and I would be very grateful if you could tell me how to implement it as well. (Even if it is not a method, I would be very grateful if you could tell me if it is possible!)
Can I make a push alarm go off at a user-specified time with pwa?
Can you make it vibrate and sound after the push alarm goes off until the user wakes up and presses Badge?
Can I make the push alarm go off every 5 minutes (a specific time)?
I am a beginner doing a toy project. I'm not good at development, so I'm asking a question.
I really appreciate it if you can help me :)
have a good day!
PS If the above functions are not possible with pwa, I am trying to implement it using react native, but is swift or kotlin used a lot?

Related

React-Native Background Tasks - repeat less then 15 Minutes?

The following question: In React-Native via the library react-native-background-fetch it is possible to execute a task in the background. For example to send a push notification. I looked at the following example in the course: https://medium.com/#alihaghani/background-tasks-and-local-push-notifications-with-react-native-d63fc7fff9b
Now in the documentation of "react-native-background-fetch" it is written that it is not possible to run a task under 15 minutes interval. Does anyone know how I can still run a task for example every minute or every 2 minutes?
If not, does anyone have a solution for the following problem:
(minimal example) I have an app that searches for Bluetooth connections in your area. When a signal is found, then show a push notification. Every minute it searches for a signal. This should happen in the background of course. For this it should be checked under 15 minutes.
Is this somehow possible with react-native?
I have already built an app that displays push notifications. I have implemented this with Firebase. In my opinion, Firebase will not be able to help me here, because the push notification is only sent when a certain logic applies, right?
Thanks to anyone who can give me some thought or even a solution to the problem

How to create background location service in Appcelerator Titanium working after restarting device

I want to make an application which will send information to a server about user's location every 30min. It is needed to provide location specific push notifications.
I need such functionality for Android/iOS, which would work in background (also if device is restarted). I found some articles covering background services and I created background service doing that, but after phone is restarted it won't work.
Is it possible with Android and iOS? How can I achieve that?
With iOS, no. With Android, yes.
Apple has gone to great lengths to limit what apps can do. You can do some things in the background for an extended period of time (GPS, play audio, Voip, etc), but after a reboot your app will not be restarted until the user opens it again. There are exceptions to this. Voip apps are allowed to restart after a reboot, but apple will not approve your app for the App Store unless you actually have a place for a user in your app to use the Voip feature. Geofences are a possibility, but I haven't had experience with that feature yet. In my experience, Apple does whatever they can to make sure your app doesn't run forever.
With android, there is more flexibility and what you propose is totally possible. I've listed some important links below, since most of those solutions are far better documented than what I can do here.
Essentially you need to register as a boot receiver and then send an intent to start a titanium android service when the boot event is received. I don't have experience with starting a titanium service, but I'm sure its a simple intent you need to fire. Either way you'll need a module for this native code. I attached a link to a bencoding titanium module that may help you, although there may be some others out there. You may even need to code one yourself.
Samsung is notorious for stopping your app with their SPCM feature. You may want to familiarize yourself with it. I've added a stackoverflow discussion link below.
I don't know all of your system requirements but honestly, for any app I would try my best to not run forever. It will hurt the battery life for your users and will add a lot of complexity. Maybe you could simply have the app check the GPS coordinates when it receives a push notification and decide right there and then whether to present a notification to the user? Just something to consider.
Either way good luck!
How to start an Application on startup?
http://docs.appcelerator.com/platform/latest/#!/guide/Android_Services
https://github.com/benbahrenburg/benCoding.Android.Tools
Dealing with Samsung SPCM killer

watchOS 2: background callbacks

I'm newbe to watch os 2, so don't really know where to start with this.
Is it possible to write a WatchOs 2 app, that will run in background and will wake up once an hour?
There is not that much info available on the web, but what I've seen so far suggests that it's not possible to write background apps. Still, I'm wondering, how do you write an app that acts like an alarm clock and wakes up at specific times during the day?
The simple WatchKit Apps can't run in background without user permission. In order to have you app running in the background, you must implement a Workout-style app, but instead of getting health and activity data, you can implement an alarm clock app, or something similar.
You can learn more on developer.apple.com documentations by clicking on the link above.

task with action in background service

I've been searching an googleing over one hour now and I'm not really sure of it's legal and possible to add some tasks in an background service that triggers an action ( and bring the app to the foreground ).
With tasks i mean that the background service is doing something on an indicated time. I know its possible to bring up the IOS alert with the notifications ect... But an simple notifiction is not good enough.
Actually I wanna play an video, and if this is not possible maybe the audio ? Since bringing the app to the foreground is not possible, or is it?
What are the options?
It's not acceptable to take away the user from what they are doing, this applies to iOS since it's a one-thing at a time OS. How would you feel if an application switched to itself while you're playing, chatting or half-way reading an article?
Apple doesn't allow it, you should stick to the Notifications, and if the user truly wants to see/hear the video/audio, then he will go to your app.

What is the best way to start a movie the first time your app starts

I want to have a movie start the first time my app is launched to train users on its use, say a 50 second clip.
How would I go about doing this in an iPad app?
(I am building a very complex platform that has hooks into the web and need users to be aware of that. The video will explain that users can go to the website for different features. When the app starts for the FIRST TIME only I want the video to play.)
Don't force users to sit thru a 50 second movie when the app starts. Your user interface should be obvious enough that they can figure out the basics without watching a training video. If you want to offer it, provide a help button, where they can watch it when they choose to.
See the iPhone HIG section Minimal User Help, which says:
A hallmark of the design of iPhone
OS–based devices is ease of use, so
it’s crucial that you meet users’
expectations and make the use of your
application immediately obvious.
EDIT -- The simplest way to keep track would be to store a flag indicating whether or not you have shown the video by using NSUserDefaults. Check if it's set at startup, set it after showing the video the first time.