[Discontinued] Background Tasks [4.1] πŸ₯³

This is my block after some guidance of yours.

Apk not working:-
web.apk (5.5 MB)

Extra function is only used for events and you cannot call it through the CallFunction block, Also just set a constant value at the beginning atself.

After using new blocks as you said it showing me empty value.

My Blocks

Change function name of β€œURIEncode” to β€œUriEncode”.

Yo :love_you_gesture: , Now it is working. Thanks For Help.

This is the correct method of helping. Keep Doing.

Still cant make the compare two strings to work
can you help me?


repeatedly every 3 seconds
If they are different send notification

You can do it:

if (myVariableOrEventVakue == something)

for string:

if (mString.equals(anotherString))

How to use UriDecode With MakeExtra Block.

Because Extra Function Doesn’t Get The Value From val1 of DataChanged.

The EventListener setled very well.

Help me to solve these blocks. Thanks @Xoma

Screenshot_2021_0812_103716

You should call it through an event or set constant value for that.

I call the value from firebase in ExtraFunctio and set it in dataT variable like dataT = val1; but it can’t settle in dataT variable. How does it possible?

I use DataChanged event to execute ExtraFunction Block.

Screenshot_2021_0812_110834

Can you show the example in blocks?

Hi,

Can I check the condition in background and play a sound if certain condition matched?

Please advise.

Thanks!

Yes with the help of ExtraFunction block you can do it.

like:

if(val1.equals("Hello"))
{
var data = true;
}
return true; :: function(someting-id)

I have to create a variable first? A block will help me much.

@Raja_HarshVardhanSolanki Can you show me your full blocks, please?

Please try It and if you are stuck somewhere you can ask me.


Yeah, you need to check it like that, but remove the var as there is already a variable named data in it. Its like reinitializing one thing.

You can’t use MakeExtra with the text block MakeExtra is not a text.
First, invoke it singly as return true :: funtion(webDecode) then put your second element.

In the next update, it will be easier.

I can’t understand :sweat_smile:

What I am doing wrong with ExtraFunction?

Notification is working for the same event , value and function but ExtraFunction doesn’t call the Player on Event.

Please advise @Xoma

Thank you.

You should use val0 instead. β€œ{$0}” is not used anymore