Closed DennisSnijder closed 6 years ago
Maybe you could create a helper application that calls the api for updates and if there is sone shows the user a notification. The helper could be started at system boot without having to start the BunqDesktop app itself.
@ntimo this could be one solution indeed. Maybe we could do something like setting up a simple server which catches the notifications and transmits the events to the correct client via sockets. (Would be really easy with https://pusher.com)
But again, that kinda kills the idea of why we switched to a desktop application.
@DennisSnijder First I think the notification checking should be done local on the device because of the privacy. And also using a service like this would cost you money/the user. And that is not a perfekt solution in my eyes.
@Crecket suggestions on this topic? 😝
The most reasonable and secure solution would be to pull every 10-30 seconds (Perhaps make this configurable/opt-in?)
@Crecket yes, that would be great +1
I want to add that we already have a component I used to display default Chrome notifications found in src/react/Helpers/Notification.js
. This should be able to show notifications even when the app is in the background
You can also create a system tray icon functionality to keep the app alive.
Small update on this topic. We requested an "/events" endpoint to the Bunq dev team. (Lets hope they will implement it 😄 )
In the near future we want to support notifications for the BunqDesktop client.
This issue is to discuss on how we should approach this since the API only allows callbacks at the moment.