In my app, i should show a local notification whenever i am terminating app by double clicking home button. I have tried this one using applicationWillTerminate(application: UIApplication) method. some times it showing notification and some some times not showing when i am terminating app. Now i used "viewWillDisappear" . it showing notification first time i am terminating app. second time if i terminate same screen it not showing notification. Is there any way to create notification whenever i am terminating same screen.
Asked
Active
Viewed 25 times
0
-
Log the didReceiveLocalNotification method, and schedule the notification after 10 or 20 sec from the current time. – RJV Kumar Apr 11 '16 at 11:50
-
Good to hear. welcome... – RJV Kumar Apr 12 '16 at 07:38