https://github.com/johnvuko/flutter_brother_printer
https://github.com/johnvuko/flutter_brother_printer
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/johnvuko/flutter_brother_printer
- Owner: johnvuko
- License: mit
- Created: 2020-08-14T11:41:38.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2025-05-21T17:06:16.000Z (about 1 year ago)
- Last Synced: 2025-05-21T18:25:45.083Z (about 1 year ago)
- Language: Objective-C
- Size: 9.7 MB
- Stars: 11
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pub.dev/packages/brother_printer)
[](https://pub.dev/packages/brother_printer)
[](https://pub.dev/packages/brother_printer)
# brother_printer
Brother printer SDK for Flutter using native SDK v4.
## Installation
Be sure to read requirements of the native SDK:
https://support.brother.com/g/s/es/htmldoc/mobilesdk/
Add this to your package's pubspec.yaml file:
```
dependencies:
brother_printer: ^0.2.5
```
### iOS
In the `Podfile` uncomment:
```
platform :ios, '13.0'
```
In the `Info.plist` add:
```
NSBluetoothAlwaysUsageDescription
Bluetooth is required for connection to your printer.
NSBluetoothPeripheralUsageDescription
Bluetooth is required for connection to your printer.
NSLocalNetworkUsageDescription
${PRODUCT_NAME} uses the local network to discover printers on your network.
UISupportedExternalAccessoryProtocols
com.brother.ptcbp
NSBonjourServices
_printer._tcp
_pdl-datastream._tcp
_ipp._tcp
```
### Android
Connection doesn't seem to work on emulator.
Add permissions:
```
```
You have to manually authorized the location permission on the device (will be improve later).
#### Warning
You may have some crash in release mode, you can add this to your `android/app/build.gradle`:
```
buildTypes {
release {
minifyEnabled false
shrinkResources false
signingConfig signingConfigs.release
}
}
```
## Notes
There are difference between what return the iOS version and the Android version
```
print('${device.model.nameAndroid} - ${device.source} - ${device.modelName} - ${device.ipAddress} - ${device.printerName} - ${device.macAddress} - ${device.nodeName} - ${device.serialNumber} - ${device.bleAdvertiseLocalName}');
# iOS
QL-820NWB - BrotherDeviceSource.network - Brother QL-820NWB - 10.0.0.1 - Brother QL-820NWB - b0:68:e6:97:db:42 - BRWB068E697DB42 - K9Z195606 - null
QL-820NWB - BrotherDeviceSource.bluetooth - QL-820NWB - null - QL-820NWB5606 - null - null - 806FB0BABE7C - null
Network: modelName, ipAddress, printerName, network macAddress, nodeName, serialNumber
Bluetooth: modelName, printerName, serialNumber
# Android
QL-820NWB - BrotherDeviceSource.network - Brother QL-820NWB - 10.0.0.1 - null - B0:68:E6:97:DB:42 - BRWB068E697DB42 - null - null
QL-820NWB - BrotherDeviceSource.bluetooth - null - null - QL-820NWB5606 - 80:6F:B0:BA:BE:7D - null - null - null
Network: modelName, ipAddress, network macAddress, serialNumber
Bluetooth: printerName, bluetooth macAddress
```
## Author
- [Jonathan VUKOVICH](https://github.com/johnvuko)