This is not a duplicate of the dozens of similar questions (too many to list) because I have evidence that it is possible to publish an
This might be possible with NetworkExtension (available since iOS 8). But you need the com.apple.developer.networking.HotspotHelper
-entitlement in you app to use these APIs. To get these entitlement, you have to contact Apple and describe, why you need it.
I haven't found any code examples, but maybe the documentation of NetworkExtension
helps you.