![]() ![]() To subscribe to this event, add an event observer to your Zendesk SDK instance. When the user receives a new message, an event is triggered with the updated total number of unread messages. The steps required to set it up are outlined in Push notifications. To ensure a good end-user experience, we also recommend setting up push notifications to work correctly with your app. If you have completed the steps above, you are now in good shape to explore the SDK and understand how messaging will work for your business and your end users. UIViewController * viewController = if ( viewController != NULL ) Initialize the SDKĪdd the following import to your project: If you're not a Zendesk admin on your account, ask one to get it for you. For instructions, see Working with messaging in the Zendesk SDKs for Android and iOS. You can obtain it from the Zendesk Admin Center. The channel key is a unique identifier that the SDK requires to initialize correctly. In Build Settings, set the CLANG_ENABLE_MODULES field to YES.īefore you initialize your SDK, you'll need to obtain a channel key. ![]() Create this directory if it doesn't exist.Ĭopy the following items into the Frameworks folder in your project:ĭrag the frameworks into the Frameworks, Libraries and Embedded Content section of your project and embed the frameworks by selecting Embed & Sign option. In Finder, navigate to where you extracted each of the SDKs.Įnsure a Frameworks directory exists in the top level of your project directory. In Xcode, select your project in Project navigator: xcframework file that you import into your project. On your targets General tab, drag each of the downloaded frameworks to the Frameworks, Libraries and Embedded Content section and embed the frameworks by selecting the Embed & Sign option.Įach repository contains a. Your targets FRAMEWORK_SEARCH_PATHS should be updated to point to Carthage/Build. For installation instructions, see Install CocoaPods.Ĭarthage will check out and download all necessary dependencies to the Carthage/Checkouts directory in your project and place the binaries at Carthage/Build. Swift Package Manager will resolve any required dependencies and download them as needed.ĬocoaPods is a dependency manager that lets you add third-party frameworks and libraries to projects. In Xcode, select File > Swift Packages > Add Package Dependency.Īdd the repository and follow Xcode's instructions to add ZendeskMessagingSDK as a dependency. As of Xcode 11, you can use it inside Xcode. It's integrated with the Swift build system. Swift Package Manager is a dependency manager for managing and distributing Swift code. See Release Notes for the latest available versions. You can add the iOS SDK to your project using one of the following methods: Obtain a channel key from Zendesk's Admin Centerīefore you initialize your SDK, you'll need to obtain a channel key. The minimum operating system version required for the Zendesk SDK is iOS 11. Ensure you meet the minimum supported iOS version I've changed the code to match that where I'm using a UIBarButtonItem and I still see the ShareSheet connection invalidated error.Before starting the integration of the Zendesk SDK, please ensure that the following prerequisites are fulfilled. Is it safe to ignore these messages? It's just odd that they didn't show up in the older OS but do in the new one.Įdited on : I validated that I was providing a valid source or barButtonItem. The message shows up when the share sheet goes away (either because user completes an action, or they tap outside of it to cancel). Self.present(activityViewController, animated: true, completion: nil) Here's the code I'm using using text instead of a file: let activityViewController = UIActivityViewController(activityItems:, applicationActivities: nil)ĪctivityViewController.excludedActivityTypes = ĪctivityViewController.popoverPresentationController?.barButtonItem = myBarButtonItem Both cases the sharing seems to work just fine. I don't see these messages on the iPhone with the older iOS on it. I have two physical devices I'm testing on an iPad running iOS 13.1.2 and an iPhone 6 running 11.4. ![]() However I keep seeing these error messages in the log (using Xcode 11.3) connection invalidated I want to share a file using the Share Sheet and have written code that seems to work just fine.
0 Comments
Leave a Reply. |