it will be work on background after connecting the device ,or notify the nearest device in sleep state.