Tfhighlander
Tfhighlander

Reputation: 60

Sending push notification for background events in 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.

Upvotes: 0

Views: 544

Answers (2)

user14624595
user14624595

Reputation: 1084

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.

Upvotes: 1

Yusof Antar
Yusof Antar

Reputation: 309

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

Upvotes: 1

Related Questions