Installation
#
Integration ExampleYou have a repository available on Github with a sample project which contains an example of how to integrate our SDK.
#
RequirementsSwift | Xcode | MeetingLawyers SDK | iOS | Status |
---|---|---|---|---|
5+ | 15.4 | 2.0.0 | 14.0+ | Supported |
#
Swift Package ManagerTo install the MeetingLawyers library you must first include MeetingLawyers package.
Steps:
- Open Xcode then select
Project
>Package Dependencies
>+
- Add the repository URL
https://github.com/MeetingLawyers/ios-sdk-spm-meetinglawyers
#
CocoaPodsTo install the MeetingLawyers library you must first include MeetingLawyers private pods repository to the Cocoapods list using the following command:
Later, in the project 'Podfile' you have to add in the header the new pods origin, in addition to the default header of Cocoapods, and in the target add MeetingLawyers sdk with right version:
Later, in the project's Podfile, you need to add the new pod source at the top, alongside the default CocoaPods source. Additionally, within the target, include the MeetingLawyers SDK with the correct version:
Now open terminal and execute:
#
Access permissionsAccess to camera or photo gallery always requires explicit permission from the user.
Your app must provide an explanation for its use of capture devices using the NSCameraUsageDescription and NSPhotoLibraryUsageDescription Info.plist key. iOS displays this explanation when initially asking the user for permission to attach an element in the current conversation. See: Apple Documentation
caution
Attempting to attach a gallery photo or start a camera session without an usage description will raise an exception.
#
Migrate from MeetingLawyersSDK (legacy)Use this guide to migrate from the legacy SDK: Migration
#
Usage#
ImportTo use the library it is necessary to import it into your App:
#
ConfigurationTo initialize MeetingLawyers, you need to call configure method configure(apiKey: String, environment: Environment? = .production, completion: @escaping (MeetingLawyersError?) -> Void)
.
Example:
To run MeetingLawyers on development
environment add environment parameter to configure call:
note
The Async/Await version of the configure
method is available:
try await MeetingLawyersApp.configure(apiKey: apiKey)
#
Next steps- Authenticate user: Authentication
- Configure PUSH notifications: Firebase
- Unread Messages Count: Messages Count
- Show professionals list: Professionals List
- Customize UI: Customization