Function 'didFinishLaunchingWithOptions' getting invoked inappropriately

Posted by clint on Stack Overflow See other posts from Stack Overflow or by clint
Published on 2012-10-10T09:26:25Z Indexed on 2012/10/10 9:37 UTC
Read the original article Hit count: 115

Filed under:

I connected my IOS device to a MAC processor and installed/initialized my app running in xcode or dragged it from itunes folder. Now i physically disconnected my device from the processor and through wifi enabled in the device, sent notifications/messages through APNS to the device. I was able to successfully receive notifications in the device. Now after some time, i reconnected the device to the processor, which lead to a problem of the app launching again and calling 'didFinishLaunchingWithOptions' method again, which is not desirable as the launch/initialization should happen only once. This behaviour is random ie. every time when i disconnect/reconnect, it is not happening, only sometimes. Why is this happening. What could be the reason for this random behaviour.

Any help will be appreciated.Thanks

© Stack Overflow or respective owner

Related posts about ios