Reputation: 1284
I've seen some answers about this but couldn't understand -
Can I show local notification to the user without PROMPTING him to register for remote notification, without asking him for any permission for that matter?
Upvotes: 0
Views: 59
Reputation: 729
From what I'm hearing from you,it might actually be the case of a special notification[like a custom notification]
This is just the way I see it,so I would recommend using cocoa pods
,for example a notification I used about a year ago in Swift
was this one:
https://cocoapods.org/pods/ALAlertBanner
[edit]: some local notifications: https://cocoapods.org/?q=local%20notification
Upvotes: 0
Reputation: 50089
before ios8, registering for local notifications in the code wasn't necessary but with ios8 apple added registerForUserNotifications
which you must call for both / either remote or local notifications
so no, you cannot avoid prompting the user
Upvotes: 4