Posts

Post not yet marked as solved
0 Replies
793 Views
Hi,I know it is not recommended to use exit(0) to force terminate the app. However, my situation is a little bit different. I would like to call exit(0) when the app is awakened by silent push notification in the background.What I trying to do is to have the silent push notification wake up the app to update some app content. After the update finished, I will call exit(0) to terminate the app. The reason why I am doing so is because when the app wakes up in background, it will trigger the initial view controller viewDidLoad() method, end up causing some unwanted behavior. Is there anyone out there who has experience similar to this? Will my app get rejected if I terminate the app in the background? Appreciate any advice and thoughts.Thanks a lot!Regards,Lee
Posted
by yeos_lee.
Last updated
.