Added support for notifications and background service; Added checks for network connectivity