ios swift apps notification not work anymore. need to update to your new IOS SDK?

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.

Didn't find what you were looking for?

New post

Comments

4 comments

  • additional information,  our apps deploy target is 13.1  

    0
  • Hello Wulong,

    Here is some feedback on your questions:

    1.do I need to update pod file from pod ‘UrbanAirship-iOS-SDK’ to pod  pod 'Airship'

    Yes

    2. do I need to update your SDK old way method to new SDK methods?

    Can you elaborate on this as I don't quite follow what this means?

    3. how to get rid of below error message?

    "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."

    Have you tried leaving the field "Value Transformer Name" as blank in the panel "Attribute"?

    Thank you,

    Chilun Liu

    Airship Support

    0
  • 2. do I need to update your SDK old way method to new SDK methods?

    Can you elaborate on this as I don't quite follow what this means?

    I mean for example previous I am using   if (UAirship.inbox().messageList.unreadCount > 0)

    so now I need to change to   if (UAMessageCenter.shared().messageList.unreadCount > 0)?

    as you have indicate I need to use pod 'Airship' instead of pod ‘UrbanAirship-iOS-SDK’

    so I thought I have to follow your new sdk library method.

     

    2.Have you tried leaving the field "Value Transformer Name" as blank in the panel "Attribute"?

    please indicate me ,where I can find this ? it is kind of from your library,

     Property 'messageURL' on Entity 'UAInboxMessage' is using nil or an insecure NSValueTransformer

     

     

    0
  • Understood Wulong.

    I'm thinking whether you have anything in your code that needs to be adjusted for the Message Centre, in which case you can take a look at the following link to help you with that as there were significant changes between the one you used to use and the one you are on now:

    https://docs.airship.com/platform/ios/message-center/ 

    Here is some further information regarding the changes:

    https://github.com/urbanairship/ios-library/blob/master/CHANGELOG.md

    https://github.com/urbanairship/ios-library/blob/master/Documentation/Migration/migration-guide-legacy.md#message-center-1

    Thank you,

    Chilun Liu

    Airship Support

    0

Please sign in to leave a comment.