Hi,
I hope no one blame me for this :)
Briefly; I'm a regular programmer, mostly dealing with C and Objective-C. My day job is related to very low-level things and I never experimenting with high-level things or web technologies since
I was not interested in.
When I decided to experimenting with this project, I created personal goal :) notification app(!) basicly it checks regularly some api and notified me.
So far so good;
I got data from web servise, parsing it and saving it to sqlite database.
My app structure basicly like this;
- index.html
-- detail.html
and timer code ( for regular call to webservice ) placed in index.html.
Here is the problem blowing my mind;
If new notifications comes and I click it; it opens directly detail.html.
After I read the memo, minimize window.
Since; detail.html do not contain any timer or api calls to webservice,
my app stucks that state.
Is there any solution / paradigm; ( like C, threading ) I exclude timer from index.html and
works both index & detail page.
Regards,
~ p.s: tracking minimize event and open index.html or creating another timer inside detail.html
may solve the problem, but i'm not looking for.