Has anyone created a declare to get remote push notifications in a Xojo iOS App?
PushNotifications aren’t implemented in Xojo yet, so I would like to add code that requests the user for authorization.
Something that mimics this in Xcode:
[code]let center = UNUserNotificationCenter.current()
center.requestAuthorization(options: [.alert, .sound, .badge]) { granted, error in
if let error = error {
// Handle the error here.
}
// Enable or disable features based on the authorization.
}[/code]
I have added the “aps-evironment” key in the plist with the string value “Production”, but that obviously does not request the user to allow them.
Thanks in advance for your reply