how to implement multiple local notification not a single notification for swift 3

后端 未结 4 1307
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-15 17:03

i have use the single notification , and this is my code: this is for register the local notification>>>

    func registerLocal() {
    let center = UNUserNotifi         


        
4条回答
  •  太阳男子
    2021-02-15 18:06

    Use a different request identifier for each notification (otherwise you only see the last notification). In the above example, ensure request identifier "UUID().uuidString" contains a unique value for each notification request.

提交回复
热议问题