Page 1 of 1
reminder
Posted: Thu Aug 23, 2012 9:51 am
by Nana
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
Re: reminder
Posted: Thu Aug 23, 2012 10:40 am
by jmburnod
Hi Nana,
Why not
Code: Select all
mobileCreateLocalNotification "The Alert Body", "Show Me", "It is time to do some Exercise", the seconds + 7200, true, "1"
(no tested)
Best regards
Jean-Marc
Re: reminder
Posted: Thu Aug 23, 2012 11:05 am
by Nana
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.
Re: reminder
Posted: Thu Aug 23, 2012 11:25 am
by jmburnod
Hi Nana,
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
Re: reminder
Posted: Thu Aug 23, 2012 1:46 pm
by Nana
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
Posted: Thu Aug 23, 2012 2:30 pm
by Nana
Do i have to use Push Notifications???
Re: reminder
Posted: Thu Aug 23, 2012 3:22 pm
by jmburnod
Nana,
How can i made it work even if the app window is closed
Sorry no idea, but certainly someone have one
Best regards
Jean-Marc
Re: reminder
Posted: Sat Nov 10, 2012 4:41 pm
by BlaBlaBliBli
Hey guys im looking badly for a reminder , can you please tell me what I have to do for making one ?
Thanks alot!