I have seen recently many banking apps detecting developer mode on and giving user with security warning messages.
I searched over apple documentation but couldn't find any such API.
Any idea how to detect same programmatically in iOS via Swift language.
I have seen recently many banking apps detecting developer mode on and giving user with security warning messages.
I searched over apple documentation but couldn't find any such API.
Any idea how to detect same programmatically in iOS via Swift language.
Share asked Feb 10 at 19:03 TornadoTornado 1,08712 silver badges28 bronze badges 8- There is no official API to detect developer mode on iOS. Why do you want to detect developer mode? It does not reduce the security of any other app in any way. I have developer mode on, on my devices, because I am a developer. If I had to switch it off and reboot every time I had to use my banking app I would switch banks. I did find some discussion online of some banking apps on Android complaining about developer mode, and the response from other developers was the same as mine; it is both pointless and annoying – Paulw11 Commented Feb 10 at 22:13
- "It does not reduce the security of any other app in any way" ? To begin with the end user can fake their location. Every single team that works in a very secure milieu deals with the troubling issue of developer mode. – Fattie Commented Feb 10 at 23:24
- PS Tornado can you name the banking app where you have seen this? I think you're just mentioning something someone said on the Apple forum, near Quinn's comment right ? – Fattie Commented Feb 10 at 23:30
- Ok, that is a different question; You didn't mention detecting simulated location. This you can do. However, simply detecting developer mode is overkill. I would be very annoyed to be locked out of my banking app simply because I had developer mode enabled; If I was simulating location that might be a different thing (But I wouldn't let my bank have my location anyway). While detecting false location may help with detecting fraud, I still don't see how developer mode directly compromises the security of an app – Paulw11 Commented Feb 11 at 0:51
- It is not a security problem because it doesn’t give the developer the means to do something that they otherwise couldn’t do. I can pretend that my phone is in New York. But I could just fly to New York. New Yorkers could just be in their home. No need to capabilities. – gnasher729 Commented Feb 11 at 4:07
1 Answer
Reset to default -1You can use
.isSimulatedBySoftware
(As you already saw I think on another answer, @Tornado! :) )
Sure, the user has to enable location but, if you are working in some sort of high security milieu, that's SOP.