In Android there may be an API which tells if the developer mode is enabled in Android gadget.
Settings.Safe.getInt(context.getContentResolver(),
Settings.International.DEVELOPMENT_SETTINGS_ENABLED , 0);
I used to be questioning if there’s something related API accessible in iOS.
I discovered related thread right here. Based on one of many reply, it’s doable to know if location is mocked in iOS utilizing this
location.sourceInformation.isSimulatedBySoftware;
If location is mocked it means developer mode is enabled in iPhone.
In my view it’s a “hacky” resolution for my use case. My app doesn’t have location functionality so I can’t use that resolution.