https://github.com/johnvuko/flutter_socket_mobile
https://github.com/johnvuko/flutter_socket_mobile
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/johnvuko/flutter_socket_mobile
- Owner: johnvuko
- License: mit
- Created: 2020-09-27T07:38:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-21T18:04:17.000Z (over 2 years ago)
- Last Synced: 2025-05-02T02:38:37.897Z (about 1 year ago)
- Language: Java
- Size: 132 KB
- Stars: 1
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# socket_mobile
Capture SDK of [Socket Mobile](https://www.socketmobile.com) for Flutter using native SDK.
## Installation
Be sure to read requirements of the native SDK:
https://docs.socketmobile.com
Add this to your package's pubspec.yaml file:
```
dependencies:
socket_mobile: ^2.0.0
```
### iOS
In the `Podfile` uncomment:
```
platform :ios, '10.0'
```
In the `Info.plist` add:
```
UISupportedExternalAccessoryProtocols
com.socketmobile.chs
```
### Android
You must have installed the [Campanion application](https://play.google.com/store/apps/details?id=com.socketmobile.companion).
More informations here: https://www.socketmobile.com/support/application-mode-for-android-8
In `android/app/src/main/AndroidManifest.xml` add:
```xml
```
In `android/app/src/main/res/xml/network_security_config.xml` add:
```xml
localhost
127.0.0.1
```
## Usage
```dart
SocketMobile.shared.configure(
developerId: appConfiguration.socketDeveloperId,
appKeyIOS: appConfiguration.iOSSocketMobileAppKey,
appIdIOS: appConfiguration.iOSSocketMobileAppId,
appKeyAndroid: appConfiguration.androidSocketMobileAppKey,
appIdAndroid: appConfiguration.androidSocketMobileAppId,
);
```
## Author
- [Jonathan VUKOVICH-TRIBOUHARET](https://github.com/jonathantribouharet)