A livechat package for embedding mobile chat window in your mobile application.
dependencies:
livechat: "^1.0.0"
import 'package:livechat/livechat.dart';
Get the Crendentials for your LiveChat
- Edit AndroidManifest.xml as shown below
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<activity android:name="com.livechatinc.inappchat.ChatWindowActivity" android:configChanges="orientation|screenSize" />
- iOS 9.0+
- Xcode 8.0+
If you use Carthage to manage your dependencies, simply add 'livechat/chat-window-ios' to your Cartfile.
github "livechat/chat-window-ios" ~> 2.0.20
Ensure you have added LiveChat.framework to the "Linked Frameworks and Libraries" section of your target, and have include it in your Carthage framework copying build phase.
If you use CocoaPods to manage your dependencies, simply add LiveChat to your Podfile.
pod 'LiveChat', '~> 2.0.20'
<key>NSPhotoLibraryUsageDescription</key>
<string>This app requires access to the photo library.</string>
<key>NSMicrophoneUsageDescription</key>
<string>This app require access to the microphone.</string>
<key>NSCameraUsageDescription</key>
<string>This app requires access to the camera.</string>
onPressed: (){
Livechat.beginChat(LICENSE_NO, GROUP_ID, VISITOR_NAME, VISITOR_EMAIL);
},
For more info, please, refer to the main.dart
in the example.
If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on Github and I'll look into it. Pull request are also welcome.
This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.