ios - Swift UILocalNotification Display On Screen -
i trying display uilocalnotification on top of screen when received. have created simple notification
var notification = uilocalnotification() notification.alertbody = "hello world!" notification.firedate = nsdate(timeintervalsincenow: 0) uiapplication.sharedapplication().schedulelocalnotification(notification) this displays should in notifications section when user swipes down on screen, there way show notification on top of screen alert user when app running?
implement in appdelegate , show alert :
func application(application: uiapplication, didreceivelocalnotification notification: uilocalnotification) { }
Comments
Post a Comment