financisto icon indicating copy to clipboard operation
financisto copied to clipboard

SMS TEMPLATE - trigger issue

Open RaafelBR opened this issue 7 years ago • 7 comments

Hi there,

I was trying to get sms parsing to work. However, even though I've tried everything and read everything in GitHub regarding that function, I just could didn't make it work.

I've even tried triggering the intent using Tasker 's send intent action ( I've used logcat to see if anything was going wrong, but nothing triggered it ).

Well, my guess is that, after looking at the manifest, The intent-filter declaration is misspelled.

( Just checked... It's misspelled but the references are correct... )

Any ideas on how to make it work?

I'm currently in version 1.8.1 running on a moto z2 force using Oreo 8.0. All permissions have been turned on, including SMS...

Since I'm learning programming, im looking at the code to see what improvement or solutions I could try making. So I would definitely like to understand the solution to this issue

RaafelBR avatar Oct 07 '18 17:10 RaafelBR

there might be vendor specific firmware issue with moto z2 launcher or so as with some mui models and some others. Generally it works for most of mainstream android devices. You can share here what sms template you added and sms example that you expect it should process.

yetanothercoder avatar Oct 07 '18 17:10 yetanothercoder

I'm using just one template right now. My own phone number and {{p}}. Very simple to activate. I've tried another a phone to get it activated but nothing so far. I've even tried different templates to get local and international prefix. Also I've tried just using the sender's name but didn't succeeded in getting the template activated.

Is there any intent I could use to get it activated are least through Tasker?

I've tried using:

ru.orangesoftware.financisto.service.FinancistoService.ACTION_NEW_TRANSACTION_SMS

ru.orangesoftware.financisto.NEW_TRANSACTON_SMS

I'm using broadcast receiver but it's not working...

RaafelBR avatar Oct 07 '18 22:10 RaafelBR

Does anyone knows how to trigger that service manually? Is there anything I could with Tasker to make it work?

If it's a vendor issue, it would be great just triggering it using a broadcast intent.

Maybe the service is not active. Would that be the problem?

RaafelBR avatar Oct 17 '18 17:10 RaafelBR

I was checking services running on background to see if any of financisto's services were running but it wasn't there... I have battery optimization disabled and still no service enabled so far. What could it be?

RaafelBR avatar Oct 22 '18 18:10 RaafelBR

Hi there,

Since I'm kind of new to GitHub and programming, I don't know if I should have replied through private, GitHub or here.

I'm definitely grasping the possibilities of open source and in trying to understand the coding ( I'm reading FINANCISTO coding and I'll implement it partly to understand part by part ).

However, that's gonna take me a while till I have knowledge enough to start contributing.

As of now, I'm trying to understand why the service is not getting triggered, neither through the app itself nor through Tasker broadcast receiver command ( continued correctly hitting the sms parsing service intent as its stated in the manifest and also in the service class).

I think no service is getting triggered, from what I've seen. ( Backup in Google drive and scheduled transactions are bugged, that I'm doing manually and this is not popping a notification up even though it's set to ).

I've tried logcat and didn't succeed in catching those services. When do they start? I can't see the service running on the background either ( want it supposed to run there since it's listening to an SMS?).

I've read that Android Oreo changed the service binder, but from what I've read, the version I'm using had already been migrated to the new Oreo standard ( handlework, enqueue... ).

What can I do to make it work? Is there any possibility to activate the SMS parsing method outside the app ( through Tasker ) or is it private? Would there need to be something on the manifest for that intent to make it work?

What about the service itself, why is it not working here? Would you happen to know? Is there anything I can do right now to help?

Thanks for all the effort you into FINANCISTO.

Att, Rafael Azevedo

Em dom, 7 de out de 2018 14:26, Mikhail Baturov [email protected] escreveu:

there might be vendor specific firmware issue with moto z2 launcher or so as with some mui models and some others. Generally it works for most of mainstream android devices. You can share here what sms template you added and sms example that you expect it should process.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dsolonenko/financisto/issues/74#issuecomment-427670746, or mute the thread https://github.com/notifications/unsubscribe-auth/Anp9qH-KeWnNjfDt9S1tqkmGAPudMEBrks5uijlOgaJpZM4XL7xg .

RaafelBR avatar Oct 27 '18 15:10 RaafelBR

@yetanothercoder any idea on how to fix this sms issue. The app is already great but it would heaven to be able to parse sms or to have my wife sending me her expenses and automatically register it on our account... I've listed all that I could think of but I've run out of ideas on how to fix it. I'm pretty sure it has something to do with Google changes to background processes

RaafelBR avatar Feb 20 '19 01:02 RaafelBR

I've just added the fix to help calling financisto SMS service externally from another app. So when it's merged by author and released to Play, you can try calling it from another app. You should try calling it sending the following intent from another app in this way: Intent intent=new Intent("ru.orangesoftware.financisto.NEW_TRANSACTON_SMS"); startService(intent); If there are some issues - please check Tasker docs to ensure that it sends it in this way.

yetanothercoder avatar Feb 20 '19 09:02 yetanothercoder