I need a local notification for an iphone app to pop up while the app is active. Is this possible? If so how?
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification
is called if you have a notification scheduled and the app is already running..it is a UIApplication
delegate method..
here you can do your custom code..by accessing the notification...
edit :
if you want to present a notification right now .. then you can just set the notification fire date to past...it will be fired..then you can create a alert view in the above given UIapplication method
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With