UrbanApps/Armchair

Multiple Prompts at once

Closed this issue · 1 comments

If there is a prompt in front and the user locks his phone and then unlocks his phone again, Armchair presents him another prompt in front of the previous one... the user then as to choose an option twice. I checked and it seems i can get as many as i want by repeating the lock unlock process...

Well, i fixed it on my own end... debugged view hierarchy to see what it uses when displaying the prompt, it was a UIAlertController... then before Armchair.showPromptIfNecessary(), I checked if the top view controller in my application is of kind UIAlertController then i skipped the Armchair.showPromptIfNecessary() call.