Awesome
ocaml-cordova-plugin-sim-card
Binding to cordova-plugin-sim
What does cordova-plugin-sim-card do ?
This is a cordova plugin to get data from the SIM card like the carrier name,
mcc, mnc and country code and other system dependent additional info.
Source: cordova-plugin-sim
How to install and compile your project by using this plugin ?
Don't forget to switch to a compiler >= 4.03.0.
opam switch 4.03.0
- If you added ocaml-cordova-plugin-list as opam package provider, you can use
opam install cordova-plugin-sim-card
- Else, you can use opam by pinning the repository with
opam pin add cordova-plugin-sim-card https://github.com/dannywillems/ocaml-cordova-plugin-sim-card.git
To compile your project, use
ocamlfind ocamlc -c -o [output_file] -package gen_js_api -package cordova-plugin-sim-card [...] -linkpkg [other arguments]
Don't forget to install cordova-plugin-sim with
cordova plugin add cordova-plugin-sms
How to use ?
- See the official documentation