How to check if an SpringBoard alert / Safari browser popup is present? - ios

Is there a way to check from the command-line terminal, if an alert view is shown?
I can ssh onto my iPad and wanted to check whether a basic-auth popup from either springboard or the safari browser is present. Does safari store the state of the alert in a specific plist/file on the device?
I can also run an app as a background service on the iPad, but will it capture the alerts shown in other apps? Can this be done via activator?

We ended up on using a Theos Tweak app and hooking in on show method of UIAlertView

Related

Switching between app and broswer ios

There is a scenario where tapping on link open's iOS native browser after which I need to close the browser and switch back to applicatio. Is there any possible way we can do the using Selenium commands.
Consider using sendkeys method to tap at home button twice. Then try to tap at some place in the middle of the screen to get back to previously opened app. That could work, but I have not tried it.
#vignesh You can't switch between different apps in iOS. Currently, appium supports app switching between android apps only.
But you can run you app in background and after specified time it will be foreground.
You can use the following code to move back from the browser.
driver.navigate().back();
Just try this out.

Open Display & Brightness Settings on AlertView button

Is there a way to open the Settings in Display&Brightness when tapping an alertView buttons? I want the user to be redirected here in order to change its Standard/Zoom view mode.
No.
In iOS 8, there is no supported method for a third-party app to open Settings to anything other than the top level, or to their app's custom settings, if they exist.
What you see in Tinder and Facebook are system alerts that iOS presents when your app wants to use the network or location services and (cellular data or) wi-fi is turned off. This is managed by iOS, and is not something that Tinder or Facebook had to add to their app.

Performing a task through a website and going back to an iOS app

I'm developing an iOS 7+ app that I need to offer the option of navigating to a certain web page to let the users to fill in a form there, and after that to come back to the app's view where the user was.
Is it possible to programmatically open Safari with a given url? If it is, I suppose that then there is no way to automatically redirect the user to your app from there... right? Is then a UIWebView the only option? Is it possible to navigate back or dismiss the view with the UIWebView without the need of user interaction?
Thanks
You can open links in Safari as detailed in this post How to launch safari and open URL from iOS app
I don't believe you can set a 'callback' and have it return to your app on completion, as you have no control over the user once they have exited your app's sandbox.
Opening the link in UIWebView would provide control, as you can utilize the UIWebView callbacks.

ios sdk show alert without launching the app

I have incorporated custom URL feature in my ios application. I would like to pop an alert on the browser itself when the application is relaunched from a screen other than home screen. I know if the app is relaunched from home screen or not. I am now popping an alert in the application it self. I want to throw the alert with out launching the application may be on the browser itself.
Thanks.
Since you can not do ANY UI stuff without having you app running, this will not be possible.
I think that is not possible, as when you are firing the URL, the control is in iOS Safari app. (Not in our custom app), and whatever you can do is - write code in your app only. So until your app gets launched, your code will not get to run, and alert won't be shown.
I am not sure if there is any other way around, this is just my own thinking.

Restrict iPad to only one application

I am developing an iPad application & I want to keep use only my application in iPad. User is not able to make any changes with Home button too.
I have tried same thing with "Guided Access". But, it will stop push notification also.
I have tried it with iPhone configuration Utility. But, I am not able to find any
restriction for Home button.
So, anyone have any idea how can I implement it?
You can't disable the Home button from the sandbox.You have to use the physical accessories to stop the Home button action, after opening your application.

Resources