mtotschnig / MyExpenses

GPL licenced Android Expense Tracking App
http://www.myexpenses.mobi/
GNU General Public License v3.0
787 stars 214 forks source link

Add transactions from bank notifications #1497

Open alex9099 opened 3 months ago

alex9099 commented 3 months ago

It would be nice if the app could listen to bank app notifications to automatically create transactions (based on the value and details that come in the notification). Could also be nice to make it an option to just pre-fill data from the notification.

mtotschnig commented 2 months ago

I did not think this was possible, but after doing some research I learnt, that it is possible for the user to grant this permission. Could you share a redacted example of such a notification, either here or to support@myexpenses.mobi?

alex9099 commented 2 months ago

ResizedImage_2024-06-02_22-19-12_1499

Here's one example for payment, there are different notifications for transfers, payment (without card) and salary. I'll update this comment (or make a new one) when I get more notifications as example

(Roughly translating, a purchase was made with card XXXX on the value of 15 eur)

ResizedImage_2024-06-06_07-55-24_8458

Pietro395 commented 1 month ago

I think it's a great idea too, with the user's consent the app could go and save the transactions automatically and lìutente would just have to worry about categorizing them correctly.

Here are some examples of my notifications

Revolut: image

Intesa San Paolo image

Perhaps one could use a regexp to locate the value and in case there are two values where one is the balance always take the lesser, as in the case of Revolut? Surely you would also need to search with keywords in various languages such as "You have paid," to differentiate expenses from entering

Pietro395 commented 1 month ago

would it be possible to read only the notifications of the banks app?

Revolut - com.revolut.revolut

N26 - de.number26.android

Bunq - com.bunq.android

Monese - com.monese.monese.live

Monzo - co.uk.getmondo

Starling Bank - com.starlingbank.android

TransferWise (Wise) - com.transferwise.android

Banco Santander - com.santander.santanderUK

ING - com.ing.mobile

BBVA - com.bbva.bbvaapp

UniCredit - eu.unicredit.mobilebanking

Deutsche Bank - com.db.pbc.phototan

Crédit Agricole - com.creditagricole.androidapp

BNP Paribas - com.bnpp.easybank

Intesa Sanpaolo - com.intesasanpaolo.mobile

Raiffeisen Bank - com.raiffeisenbank.mobile

ABN AMRO - nl.abnamro.apps.pbankieren

HSBC - com.hsbc.mobilebanking

Barclays - com.barclays.android.barclaysmobilebanking

Lloyds Bank - com.grppl.android.shell.CMBlloydsTSB

NatWest - com.rbs.mobile.android.natwest

Royal Bank of Scotland (RBS) - com.rbs.mobile.android.rbs

CaixaBank - com.lacaixa.mobile.android.newwapicon

Société Générale - com.societegenerale.mobile.lappli

KBC Bank - com.kbc.mobile.android.phone.kbc

Erste Bank - at.spardat.netbanking

Commerzbank - de.commerzbanking.mobil

DZ Bank - de.dzbank.dzbankapp

DNB - no.dnb.vipps

Nordea - com.nordea.mobilebank

Swedbank - se.swedbank.mobil

SEB (Skandinaviska Enskilda Banken) - se.seb.mobile.android

Danske Bank - com.danskebank.mobilebank

Handelsbanken - com.handelsbanken.next

Alpha Bank - gr.alpha.mobilebanking

Eurobank Ergasias - gr.eurobank.mobile.app

Piraeus Bank - com.piraeusbank.winbank

Bank of Ireland - com.bankofireland.mobilebanking

Permanent TSB - com.permanenttsb.mobile

Banca Transilvania - ro.btrl.mbt

BRD - Groupe Société Générale - ro.brd

OTP Bank - hu.otp.mbanking

Sberbank Europe - com.sberbankmobile

Bank Millennium - pl.bankmillennium

PKO Bank Polski - pl.ipko

Alior Bank - pl.aliorbank.mbank

Banco BPM - it.bancopopolare

Banca MPS (Monte dei Paschi di Siena) - com.mps.mobilitas

FinecoBank - com.fineco

Hello bank! - com.bnpparibas.hellobank