App terminate after iPhone is locked

Hi,


My App works fine but is still in development....

First SignON and scroll over my Tableview....make an Order and wait for Response (iPad App)...


now after the order is submit my timer is still working check every 10 sec for response...

now push my App in Background and foreground the timer ann App is still alive...


but is automaticly settings the iPhone screen dimm the Screen and after a while my iPhone is locked,

after unlock my iPhone and start my App ...my App is in login Screen...


so i have set in my scheme "Launch due to background fetch event! but it's not working...


Why my App is terminated an not on my last screen after locked ?

there are only simple URLConnection call on my timer....


Thanks

Replies

Show your code for (a) what happens when your app enters the background and (b) what happens when your app wakes up.