[Discontinued] Background Tasks [4.1] 🥳

I am not sure why this is happening, at the first point the service should get crash as in the third value for the showContent function is a text and not boolean, you should have first got class cast exception.

Set the third value of showContent to false or true (for big text)
let me know if this solves, else I will investigate the issue

May I know your android version.

nope, nothing changed :sob:

i have a xiaomi MI A2 with Android 10

Hi, this actually looks like a synchronization bug one of the loops is executed late, I will do deep into the issue tomorrow and check what is not working.

I have sent you the project file (nothing is changed), what was happening with you should not have happened at all, it’s totally weird, did you update your extension? how many times?

Because that on your APK was behaving differently from the one of mine.

anyway, I have fixed it and sent you the new project file, removing and reuploading the extension just fixed the problem.

Tasks 3.7 :watermelon:

Minor bug fixes

  • Improved event handling
    Components like the PhoneCall component of the AnsweredCall event’s phone number was null sometimes.
    The extension couldn’t handle it although the value is not used. This is now fixed

  • Fixed service start issue on older devices (ref this post)

Download extension:com.kumaraswamy.tasks.aix (467.6 KB)

2 Likes

Hi sorry for the late reply, I needed some time.
Since the android application needs access to phone call permission to be declared in the android XML, that doesn’t work.

Kodular has an inbuilt “PhoneCall” component.

phone_listener.aia (469.7 KB)

shot

Make sure to allow all the permissions to avoid crashes since the components cannot ask for permission from the background.

2 Likes

Hey, thanks for your reply:+1:
I have downloaded your background tasks extension (version 3.7) and I’ve done this:

BLOCKS

All works except for “CALL ENDED” notification, it isn’t shown…
I supposed that “PhoneCallEnded” event isn’t catched:frowning_face:

how to create this

blocks

thanks, now its working!

1 Like
1 Like

Hi, you should try it using the normal blocks as just one feature is not working, every event is watched by the extension. If registered, it forwards it to any event.

Seems there is a bug with “Phone Call Ended” event of “Phone Call” component:sob:

Is it possible to trigger that event with activity intent?
Is there any way to trigger that event?

Hello @Xoma Remember me the Chat App Person? I have Tried you Methods it Worked out Well but i am not happy with Airtable. So I changed to Firebase RTDB. Is it the same way i should do for Firebase. i am trying from hours but not getting. Please Help ?

What have you tried?

Please let me know how to use these blocks with background tasks extension.
Screenshot_2021_0810_134103

I already check guide by you @Xoma but they can’t help.

Second Thing, I want to give you a suggestion, don’t focus to update internal functions, Please make your extension to work with UI Components.

Because i want to work with FloatView extension in background but i can’t because of your extension doesn’t support UI Components.

1 Like

The reason is that you will need to pass the arrangement to the background service which you cannot directly just pass it.
There are only a few types of objects like lists, numbers, texts and other things possible to do but not all.

The extension saves the data (arguments, lists, text, numbers, Dict) as a File which is then read by the service to obtain the objects back to their original form directly without any third-party library.

You can see the file in the app directory and a directory named BackgroundTasks/BackgroundTasks<Servicce_ID>.

You cannot directly do not view contents, (it’s encoded using ObjectStream)

Search the topic, it is possible and that’s how the extension works. I don’t know why people want instant solutions.
I agree, extension is complicated to understand, but that doesn’t mean you will be asking such small questions again and again.

1 Like

I do this many time with MakeExtra Block but it can’t work.

I know all method to use Decode Function but it showing error again and again.
So i want your help on this small issue.

Show me your blocks, saying not working is not gonna help.

Hello, I need help … I want to modify this AIA to detect when there is a change in the “request” tag when the application is in the background.

blocks (2)