def METHOD_NAME(self):
    """ check if the application is in the foreground """
    if self.current_focus() != f"{config.APPNAME}/{config.APP_ACTIVITY_NAME}":
        self.launch()
        # wait for app to finish launching
        time.sleep(10)