An open API service indexing awesome lists of open source software.

https://github.com/johnvuko/flutter_socket_mobile


https://github.com/johnvuko/flutter_socket_mobile

Last synced: 5 months ago
JSON representation

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)