hi currently our ios swift apps notifcation not work anymore, it used to work fine.
in my pod file , I am still using
pod ‘UrbanAirship-iOS-SDK’ , the version is 12.1.2
I just update from version 11 to latest version 12.1.2 but still has below error message. and notification not work any more.
I did noticed ,currently your ios sdk has a lot of change.
like. pod file change to
pod 'Airship'
not pod ‘UrbanAirship-iOS-SDK’ anymore.
and inside code has a lot of change.
for example.
1. AppDelegate.swift
@objc func refreshMessageCenterBadge() {
your previous code is
something like
if (UAirship.inbox().messageList.unreadCount > 0) {
messageCenterTab.badgeValue = String(UAirship.inbox().messageList.unreadCount)
but now changed to
if (UAMessageCenter.shared().messageList.unreadCount > 0) {
messageCenterTab.badgeValue = String(UAMessageCenter.shared().messageList.unreadCount)
above is just a example, and there are some other place code changes which is totally different to before.
my question is
1.do I need to update pod file from pod ‘UrbanAirship-iOS-SDK’ to pod
pod 'Airship'
2. do I need to update your SDK old way method to new SDK methods?
3. how to get rid of below error message?
our apps deploy target is 13.1
CoreData: fault: One or more models in this application are using transformable properties with transformer names that are either unset, or set to NSKeyedUnarchiveFromDataTransformerName. Please switch to using "NSSecureUnarchiveFromData" or a subclass of NSSecureUnarchiveFromDataTransformer instead. At some point, Core Data will default to using "NSSecureUnarchiveFromData" when nil is specified, and transformable properties containing classes that do not support NSSecureCoding will become unreadable.
CoreData: warning: Property 'messageBodyURL' on Entity 'UAInboxMessage' is using nil or an insecure NSValueTransformer. Please switch to using "NSSecureUnarchiveFromData" or a subclass of NSSecureUnarchiveFromDataTransformer instead.
CoreData: warning: Property 'messageURL' on Entity 'UAInboxMessage' is using nil or an insecure NSValueTransformer. Please switch to using "NSSecureUnarchiveFromData" or a subclass of NSSecureUnarchiveFromDataTransformer instead.
CoreData: warning: Property 'rawMessageObject' on Entity 'UAInboxMessage' is using nil or an insecure NSValueTransformer. Please switch to using "NSSecureUnarchiveFromData" or a subclass of NSSecureUnarchiveFromDataTransformer instead.
Comments
4 comments