reminder
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
reminder
Hi guys,
i am building a reminder for my mobile and i am using
mobileCreateLocalNotification "The Alert Body", "Show Me", "It is time to do some Exercise", the seconds + 10, true, "1"
With this i get a reminder after 10 seconds. How can i make it to repeat the reminder every 2 hours for example.
Thanks
i am building a reminder for my mobile and i am using
mobileCreateLocalNotification "The Alert Body", "Show Me", "It is time to do some Exercise", the seconds + 10, true, "1"
With this i get a reminder after 10 seconds. How can i make it to repeat the reminder every 2 hours for example.
Thanks
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: reminder
Hi Nana,
Why not
(no tested)
Best regards
Jean-Marc
Why not
Code: Select all
mobileCreateLocalNotification "The Alert Body", "Show Me", "It is time to do some Exercise", the seconds + 7200, true, "1"
Best regards
Jean-Marc
https://alternatic.ch
Re: reminder
Hi Jean-Marc,
this will send the notification in 2 hours. But i want this to happend every two hours.
Thank you for the reply.
this will send the notification in 2 hours. But i want this to happend every two hours.
Thank you for the reply.
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: reminder
Hi Nana,
Maybe this one is better.
It use a pendingmessage
You can stop it with the optionkey
Maybe this one is better.
It use a pendingmessage
You can stop it with the optionkey
Code: Select all
on StartLoopNotification
DoLoopNotification
end StartLoopNotification
on DoLoopNotification
if the optionkey is down then
stopPending DoLoopNotification
exit DoLoopNotification
end if
mobileCreateLocalNotification "The Alert Body", "Show Me", "It is time to do some Exercise", the seconds + 1, true, "1"
if "DoLoopNotification" is not in the pendingmessages then
send DoLoopNotification to me in 7200 seconds
end if
end DoLoopNotification
on stopPending pPending
repeat for each line aLine in the pendingmessages
if aLine contains pPending then
cancel item 1 of aLine
end if
end repeat
end stopPending
https://alternatic.ch
Re: reminder
That is what exactly i wanted! Thank you very much! I just have a last question about this. How can i made it work even if the app window is closed?
Re: reminder
Do i have to use Push Notifications???
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: reminder
Nana,
Best regards
Jean-Marc
Sorry no idea, but certainly someone have oneHow can i made it work even if the app window is closed
Best regards
Jean-Marc
https://alternatic.ch
-
- Posts: 37
- Joined: Sat Oct 06, 2012 12:22 pm
Re: reminder
Hey guys im looking badly for a reminder , can you please tell me what I have to do for making one ?
Thanks alot!
Thanks alot!