Binding OCaml to cordova-plugin-background-mode using gen_js_api.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
opam
LICENSE
META
Makefile
README.md
cordova_background.mli

README.md

OCaml-cordova-plugin-background-mode

This is a binding to the cordova plugin:

Binding to cordova-plugin-background-mode

What does cordova-plugin-background-mode do ?

This cordova plug-in can be used for applications, who rely on continuous network communication independent of from direct user interactions and remote push notifications.

Source: cordova-plugin-background-mode

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

You can use opam by pinning the repository with

opam pin add cordova-plugin-background-mode https://github.com/dannywillems/ocaml-cordova-plugin-background-mode.git

and to compile your project, use

ocamlfind ocamlc -c -o [output_file] -package gen_js_api -package cordova-plugin-background-mode [...] -linkpkg [other arguments]

Don't forget to install the cordova plugin camera with

cordova plugin add cordova-plugin-background-mode

How to use ?

See the official documentation cordova-plugin-background-mode