Adapted the bgs-core plugin to work with ionic
Original project: https://github.com/icecoolinux/bgs-core.git