Hi all.
I am not sure if this is the correct place to ask so please point me in the right direction if it is not so.
I've created a new profile which is triggered with state 'Unread test' (SMS).
As the 'Enter' task I've created a for loop with 4 entries representing the amount of minutes I would like to wait before ringing a notification sound.
Roughly the task list looks like the following:
>> PROFILE
Unread Text SMS
>> ENTER
for %mins in 1,2,4,10
Wait %mins Minutes
Play notification ringtone
end for
The problem here is even if I read the notification the task will keep on ringing until the for loop is exhausted.
To solve the issue I introduced a global variable which I set in ENTER task and clear in the EXIT task so my profile looks to be as follows:
>> ENTER
Set %UNREADMSGS to 1
for %mins in 1,2,4,10
Wait %mins Minutes
Stop if %UNREADMSGS <> 1
Play notification ringtone
end for
<< EXIT
However this does not seem to work. EXIT task does not seem to be run once I read the SMS message (or the Stop does not terminate the task).
Any tips on what could be the problem here?