The connectivity should be moved to a background service to allow notifications to be pushed when the app is not in the foreground.