We created the bug report for the import and the crash you reported, they will be fixed in the next release asap.
Original Message:
Sent: 09-01-2025 11:55
From: Oliver Foggin
Subject: Documentation out of date. MessangerAccount no longer exists.
We've sorted this now using the https://github.com/MyPureCloud/mobile-messenger-genesyscloud-spm SPM package!
This should be at the top of the docs! Much better integration this way!
Thanks
------------------------------
Oliver Foggin
Original Message:
Sent: 09-01-2025 11:04
From: Oliver Foggin
Subject: Documentation out of date. MessangerAccount no longer exists.
Hmm...
@Akosne Tamasi
With the 1.16 SDK I'm getting a crash at run time of the app. Before the app is even able to load...
Symbol not found: _OBJC_CLASS_$_MessengerTransportPushProvider Referenced from: <2B3FD654-DAB0-3941-A073-B041D2313FF3> /<REDACTED>/Build/Products/Debug-iphonesimulator/GenesysCloudMessenger.framework/GenesysCloudMessenger Expected in: <76231908-CA57-3C94-9759-AEA72FC4658B> /<REDACTED>/Build/Products/Debug-iphonesimulator/MessengerTransport.framework/MessengerTransport
There's more to the message after this but it's all just stack trace stuff. This seems to be the main issue.
This is happening on initial boot of the app. Not when the chat is loaded.
------------------------------
Oliver Foggin
Original Message:
Sent: 09-01-2025 09:39
From: Akosne Tamasi
Subject: Documentation out of date. MessangerAccount no longer exists.
Hi Oliver,
MessengerAccount still exists. You need to import GenesysCloudMessenger to use it.
Previously it was imported by GenesysCloud, this is the change. It was not intentional, and will be fixed in the next release.
But until then, please try the workaround to import GenesysCloudMessenger.
Thank you.
------------------------------
Monika Tamasi
Mobile Development Manager
Original Message:
Sent: 09-01-2025 08:28
From: Oliver Foggin
Subject: Documentation out of date. MessangerAccount no longer exists.
It looks like the property `customAttributes` no longer exists too.
What should my updated code look like if this was the old code?
let messengerAccount = MessengerAccount(
deploymentId: deploymentId,
domain: domain,
logging: shouldEnableLogging
)
messengerAccount.customAttributes = [
"chatAgent": "mobile",
"deviceDetails": "iOS",
"redactedPropertyA": "someValue",
"redactedPropertyB": "someValue",
]
I know that I need to use the `GenesysCloudCore.Account` but this only looks like this...
@objc open class Account : NSObject {
public var apiKey: String?
public var info: [String : [String : String]]?
public var sessionInfo: GenesysCloudCore.SessionInfo
override dynamic public init()
@objc deinit
}
So there isn't an obvious way to update this.
Thanks
------------------------------
Oliver Foggin
Original Message:
Sent: 09-01-2025 08:23
From: Oliver Foggin
Subject: Documentation out of date. MessangerAccount no longer exists.
Genesys Cloud Developer Center
The documentation (linked) shows setting up the MessengerAccount and injecting it into the ChatController.
We have just updated to 1.16 of the SDK and this type no longer exists.
It looks like the `GenesysCloudCore.Account` is what we should be using but there are no initialiser params for this.
Please could you update the documentation.
And also update to support SPM. Everything that I am doing right now to add Genesys through SPM is exactly what you need to do so that we don't have to do this as developers.
#MobileMessenger
------------------------------
Oliver Foggin
------------------------------