Under Audience/Device Tokens I have my device token duplicated there multiple times... resulting in multiple push notifications being received.
I believe this was due to the placement of
In func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool
Per the documentation I had:
Then directly after (again per the documentation):
UAirship.push().userPushNotificationsEnabled = true
UAirship.push().defaultPresentationOptions = [.alert, .badge, .sound]
This resulted in:
1) The app crashing and
2) These duplicate entries
What I would like to know is:
1) How can I remove the duplicates and
2) Will and errant UAirship.push().userPushNotificationsEnabled = true always create a duplicate entry (same token). That seems like a bug to allow this.