Sending push notification for background events in flutter - flutter

I am developing in flutter a stock market alert app that checks in the background a certain stock price and send a push notification. I used the background_fetch library but that is only able to fetch the price every 15 minutes, and have some reliability issues on ios.
Therefore, I was wondering if there was another way to implement the same feature.

You can try android_alarm_manager package from pub dev, but it is only available for
(you guessed it) android. This will solve the 15 min frequency I hope it works for you. On a side note I also need a function to run when user enters a geofence when app is on background and I still haven't found a solution. Because in my problem it shouldn't run every x minutes but when sth is triggered.

there is this answer of a similar question but on IOS but it work the similar way on android hope this help and i am sorry for this negative answer :(
answer here

Related

Beacon and Flutter can works?

I have a question, I want to buy a beacon and send the signal from the beacon to the flutter application and then do something.
Is that possible with flutter?
Thank you very much!
Yes, it is possible. I tried https://pub.dev/packages/flutter_beacon for myself interest once when covid-19 declared a pandemic by WHO to solve Handshake problem.
I was converting the existing device as a beacon and then used "flutter_beacon" package to get the list of beacons in a defined region. So yeah, it is possible to do it flutter also. You can customize it as per your need further. But basic things are possible like getting the list of beacons in reason.
If asked whether or not, the answer is yes. but there are some obstacles or limits, such as Bluetooth will not scan in the background as in this article, this is indeed from Android and IOS which causes the limit. I am also working on this project, but there are still some problems as I have described above.
This link also can help Beacon scanning in background - Android O

How to run background service in flutter

I am trying to develop a flutter app which will fetch data from server every 10 seconds using timer. It all works well when in foreground. So I followed the documentation provided here Work Manager and I can get the data from server even when app is in background but cannot reduce the frequency below 15 minutes. I dont want to code in native android and ios. How can I approach this situation ? Is there a solution I am missing ?
Please take a look at the tutorial about background job processing

How to get real-time notifications in Flutter

I am new in Flutter, I have used web_socket_channel in my app. Now I want to get notifications when the app is not running. Keeping the app running in the background is not possible, so what do you recommend me to do?
So far I found them:
Websocket Manager- They claim to open socket connection in the background, but I couldn't find enough resources to find out.
https://pub.dev/packages/websocket_manager
Background Fetch - Opens the app for a few seconds in the background periodically (15 minutes or more). I do not prefer this one actually :( .
https://pub.dev/packages/background_fetch
You can use firebase_messaging, it's easy to implement in android and got a bit of configurations to do in IOS but it's good.

Setting a Recurring Event using Appcelerator Titanium

I've got an app I'm building using Appcelerator Titanium that will be a combination alarm clock/url fetcher. The part I'm having problem with is that I need to be able to set a time for the app to go fetch the url and then perform actions as necessary (in this case alert the user if data that should be entered in a time system has been entered). I also want it to do this every day (or every week day) at the prescribed time, and I want it to not have to be 'launched' every time. I'd rather it come up and run as a service, or at least run as a service when sent to the background. I'm most focused on the iPhone, but I've got a few Android users that would like it as well.
Is it even possible to have an Appcelerator app hooked into the system like that? If so, are there any tutorials or examples? I can't even find an alarm clock example, which scares me a bit.
I think that localNotifications should work for you.
there is a sample in the bg.js file included in the kitchenSink.
It is also helpful to know that all of the keys/properties available to you are documented here in the source code.
This guy has a nice alarm module written for android.
https://github.com/benbahrenburg/benCoding.AlarmManager

How to regularly check for RSS/email-like updates online with iOS4

Is it possible to have an App (running iOS4 on hardware supporting multi-tasking) which starts on iPhone startup and then regularly checks for online updates (every 15 minutes) and then refresh the badge, so the user can see how many unread items there are with-out having a push-server?
I was hoping this would be possible with iOS4 Programming Guide seems to suggest it is only possible to to this regarding Locations tracking, VoIP and playing background audio. There is also the possibility to do local-push notifications, but I don't see to find how to trigger a specific function that way.
Thanks in advance for any help!
edit:
Just having read a bit more, if the application is in the background/inactive state, and I son want to update the badge-number without displaying a message, is there an action triggered like didReceiveLocalNotification? There must be a way to schedule something on a regular basis (like email checking) without having to implement a full server-push-nitification system!
Is it possible to have an App ... which starts on iPhone startup and then regularly checks for online updates (every 15 minutes) and then refresh the badge
As you already figured out, the answer is no.