Manually create SBDUserMessage for testing

I want to manually create a SBDUserMessage object for testing. I used to be able to init one with a dictionary eg:

let testMessage = SBDUserMessage(["user": ["user_id": "1", "nickname": "andrew804", "profile_url": url], "message": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.", "created_at": Date().millisecondsSince1970])

However that ability was taken away in about 3.0.186. I’ve tried the func with same data but it returns nil.

What can I do?

Do you explicitly need to create the test message within the iOS SDK? If not, you could use that platform API to send the message via something like Postman.

Message’s initWithDictionary methods had been exposed to public unofficially, but we have never intended to let use message’s init method directly from outside of framework. All message init methods are hided since 3.0.186.