Eddayy / flutter_star_prnt

Flutter plugin for star printer
GNU General Public License v3.0
15 stars 60 forks source link

appendBitmap does not work on iOS #7

Closed dorsamet closed 3 years ago

dorsamet commented 3 years ago

Using the same codebase, I am unable to print a UIImage. iOS Implementation for appendBitmap:

guard let filePath = command["appendBitmap"] as? String,
           let image = UIImage(contentsOfFile: filePath) else {
           continue
      }
      try? FileManager.default.removeItem(atPath: filePath)
      builder.appendBitmap(withAlignment: image, diffusion: true, width: 576,
                   bothScale: true,
                  rotation: SCBBitmapConverterRotation.normal, position: SCBAlignmentPosition.center)
dorsamet commented 3 years ago

Note that printing a text does not work either, as I'm getting a port exception

dorsamet commented 3 years ago

Seems like the error is caused by error NSError domain: "jp.star-m.stario" - code: 18446744073709551615

What does this mean?

I am trying to connect to a device in my WAN. No info.plist stuff is needed, right?