Hi Support Team,
We have implemented Tags functionality in our iOS app with help of SDK (UA SDK), We are adding and removing the tags and trigger(add/remove) automation message.
sometimes messages appear on time but sometimes push/in-app messages are only delivered after closing and reopening the app. Can you please assist?
Functional:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
let config = UAConfig.default()
if (config.validate() != true) {
showInvalidConfigAlert()
return true
}
// UA and Gimbal Configuration
UAirship.setLogLevel(UALogLevel.trace)
config.messageCenterStyleConfig = "UAMessageCenterDefaultStyle"
UAirship.takeOff(config)
UAirship.push().userPushNotificationsEnabled = true
UAirship.push().pushNotificationDelegate = self
UAirship.push().defaultPresentationOptions = [.alert, .badge, .sound]
// Print out the application configuration for debugging (optional)
print("Config:\n \(config)")
// Set the icon badge to zero on startup (optional)
UAirship.push().resetBadge()
UAirship.location().isLocationUpdatesEnabled = true
UAirship.location().isBackgroundLocationUpdatesAllowed = true
UAirship.push().resetBadge()
UAirship.shared().deepLinkDelegate = self
GimbalAdapter.shared.restore()
GimbalAdapter.shared.bluetoothPoweredOffAlertEnabled = true
GimbalAdapter.shared.start(“gimbal_key")
}
After Adding and removing the tags update the registration on UA with the help for below methods.
UAirship.push().addTag(“tagName”) for add tag
UAirship.push().removeTag(“tagName”) for remove tag
UAirship.push().updateRegistration() update registration on UA
Thanks
Comments
1 comment