notification, badges / Multitasking

for now we can set several notifications in the future.

but it looks we “can not”
-set one notification and when it appears call a subroutine that calculates the next notification
because of the missing multitasking ability from Corona, right?

I would need to set ‘every day’ another badge number, but without the above feature, I would have to set 365 Notifications in the future to get just one year proper working. (that even does need long time calculating)

If someone has a solution, please let me know. I got the Impressions its not an important feature within the Ansca Team.
I would really feel glad if I get this time some positive answer, waiting for monthes to fix that.

greets
chris

[import]uid: 4795 topic_id: 22621 reply_id: 322621[/import]

I don’t have a great answer to your problem as I was faced with the same recently.

I can however suggest that you do something like:

Considering that a day has 86400, and assuming the notification function takes seconds, which I’m not sure.

for i=1, 365 do  
 local seconds = i \* 86400  
 newNotification(..., seconds)  
end  

This would handle the trouble of setting all notifications for a year at least :stuck_out_tongue: [import]uid: 61899 topic_id: 22621 reply_id: 90215[/import]

haha… :slight_smile:

thanks… i also thought about that…
but even i would do… i needs long time to make 365 notifications and keep them updated

:frowning:

hope ansca takes care on that soon

chris
[import]uid: 4795 topic_id: 22621 reply_id: 105766[/import]