Hello @psp , Thank you for reaching out and for sharing the details.
In order to help you further with this issue, could you please confirm the version of the AmityUIKit and AmitySDK you are currently using in your project? This will help us investigate more accurately and provide the right solution.
Hello @psp , After checking with our team, our team suggests that since you are planning to use UIKit v4, please ensure you are registering the device using the v4 API. You will need to import AmityUIKit4 and use the AmityUIKit4Manager class, which provides the same methods for registering the device.
If you have any further questions or need assistance with the integration, feel free to let us know.
I have tried with AmityUIKit4, now register methods are working now.
But I am facing an issue on opening social screen. below code I am using for the same
let socialHomePage = AmitySocialHomePage()
let navigationViewController = AmitySwiftUIHostingNavigationController(rootView: socialHomePage)
navigationViewController.modalPresentationStyle = .fullScreen
navigationViewController.title = "My Social Community Page"
self.present(navigationViewController, animated: true)
When I am open this page, I want to change its title. and I want show back button. can you help with that? Unable to find anything on documentation
Hello @psp , After checking with our developer:
For the back button, there is an undocumented way — AmitySocialHomePage has a showBackButton parameter. You can use it like this: AmitySocialHomePage(showBackButton: true)
As for the title, it cannot be changed if you are installing it through SPM. To modify the title, you’ll need to update the code directly by using the open-source UIKit.
After checking with our dev team, we’d like to share that currently, there isn’t a way to customize the callback for the back button — its default behavior is to pop from the navigation controller stack.
For your use case, we would recommend installing the UIKit via the open-source codebase. This will allow greater flexibility and the ability to customize the navigation behavior as needed.
Please feel free to reach out if you need any assistance.