diff --git a/lib/run_loop/device_agent/client.rb b/lib/run_loop/device_agent/client.rb index d25a5a4f..518e624e 100644 --- a/lib/run_loop/device_agent/client.rb +++ b/lib/run_loop/device_agent/client.rb @@ -592,6 +592,25 @@ def dismiss_springboard_alert(button_title) true end + # @!visibility private + def dismiss_springboard_alerts_automatically + parameters = { :dismiss_automatically => true } + request = request("set-dismiss-springboard-alerts-automatically", parameters) + client = http_client(http_options) + response = client.post(request) + hash = expect_300_response(response) + hash["is_dismissing_alerts_automatically"] + end + + # @!visibility private + def dismiss_springboard_alerts_manually + parameters = { :dismiss_automatically => false } + request = request("set-dismiss-springboard-alerts-automatically", parameters) + client = http_client(http_options) + response = client.post(request) + hash = expect_300_response(response) + hash["is_dismissing_alerts_automatically"] + end # @!visibility private # @see #query