Capacitor plugin for Zebra Printers
npm install zebra-capacitorThis works with bluetooth printers only.
This is all a port of a plugin I built for Cordova (which was well tested), so I'm reasonably sure it should all work.
I had plans to port this to Capacitor 3, and still may, but my time is quite limited at the moment.
Also for iOS update your apps Info.plist file with Supported external accessory protocols as an array with the value com.zebra.rawport.
Add this to your plist
```
I'll experiment with trying to automate this via the podspec as well. If anybody can help with this, please submit a PR :)
`and register the plugin in your MainActivity.java for example:
`
import ca.cleversolutions.zebracapacitor.ZebraCapacitorPlugin;
...
public class MainActivity extends BridgeActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); // Initializes the Bridge
this.init(savedInstanceState, new ArrayList>() {{
// Additional plugins you've installed go here
// Ex: add(TotallyAwesomePlugin.class);
add(ZebraCapacitorPlugin.class);
}});
}
}
``