I am trying to create a local notification for my app using Apple\'s UNUserNotificationCenter.
Here is my code:
let center = UNUserNotificationCenter
I had the same problem.
If your content body is blank ie(content.body == "") then you won't get a notification even if you do have a title.
So the solution is to make sure that your content body is not an empty string.