removed onpause and onresume logic, as this was causing the barcodescanner plugin to not return results