parse.com - Multiple Notification on iOS -


the application sends multiple notifications every new item, how can one? here multiple notifications

when set notification @ time have save userinfo identify particular notification.

swift 2.0:

let dict:nsdictionary = ["id" : notifiuserinfoid]         localnotification.userinfo = dict as! [string : string] 

in above code have set specific value "id" key. , getting 1 use following code

swift 2.0:

    var arrnotification = nsarray()   arrnotification = uiapplication.sharedapplication().scheduledlocalnotifications!              notify in arrnotification             {                 let notification = notify as! uilocalnotification                 if let info = notification.userinfo as? [string: string]                 {                     if info["id"] == lblcurrentopeneventidonday.text                     {                         //get notification here                     }                 }             }         } 

hope you!!!


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -