Does anyone have a working example of the BackgroundTasks Extension

I purchased the BackgroundTasks Extension but just can't get my head around the naming convention.
Has anyone used it and has it working. Would love a simple example. Thank you.

The error I get is


I can't seem to find any AI2 examples. So I'm probably doing something wrong.

@Anke I believe you might be able to point me in the right direction, if you have time. That would be much appreciated.

Hello 18637

I see you are using the Extension Developer's example when the error is generated. The best person to ask is the Extension Developer. The extension is designed around Kodular, so something might be incompatible with AI2.

I've tried his examples, and a volley of everything else. Was just hoping that someone had an a working example in AI2 before I bothered him, incase it was my stupid mistake.

Well if the example does not work, he/she is the most likely to know why, being the developer of both the extension and the example.

1 Like

That is true.
Since the extension developer has not released the extension here so it is quite understandable that it is somewhere incompatible with ai2

1 Like

From what I have read, it is compatable ans I spoke to him prior and and he said it would be compatible. Just thought I would ask here for a simple example if somone had previously used it.

If so then here is the answer:
You can't use that or any extension using service in Companion because companion app does not have those services declared in manifest.

5 Likes

Just to finish the line of reasoning here, you must compile any apps that use extensions with services due to the fact that the services are added to the app at compile time. The companion app doesn't declare these services, but when you compile your app the final product will have them.

4 Likes

Thanks all for the help. The Background Extension is all working now. It does work in AI2, just not work in the Companion as stated above. When compiled this example is working the way it should with the screen off. I contacted [Atom_Developer] who easily pointed me in the right direction. Here is my example for anyone else who purchase the ext.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.