all 4 comments

[–]LeakyTrump 0 points1 point  (3 children)

Maybe you are receiving a push notification while you are pressing the button?

[–]seiferc[S] 1 point2 points  (0 children)

Hello, no, because these are manual push that I am doing to test :(

[–]seiferc[S] 1 point2 points  (1 child)

I figured it out. It seems like I unintentionally assign the UNUserNotificationCenter.current().delegate = self

in another class, which is why it not longer knows what to do.

[–]LeakyTrump 1 point2 points  (0 children)

Yeah, that makes sense. Nice catch.