title: How to cancel register an app as a Hotspot Helper (NEHotspotHelper)?
body: <p>I wrote an app that registered as a Hotspot Helper by method below:</p>
  
  <pre><code>[NEHotspotHelper registerWithOptions:queue:handler:]
  </code></pre>
  
  <p>which is <a href="https://developer.apple.com/reference/networkextension/nehotspothelper/1618965-registerwithoptions?language=objc" rel="nofollow noreferrer">documented here</a>.</p>
  
  <p>After registered , as the document said</p>
  
  <blockquote>
    <p>Once this API is invoked successfully, the application becomes eligible to be launched in the background and participate in various hotspot related functions.</p>
  </blockquote>
  
  <p>Everything walks great.</p>
  
  <p>But, how could I cancel the registration without dispatch a new release ?  I want to provide an local configuration , so user could remove my app from hotspot helper.</p>
  
  <ol>
  <li>I tried not to call registerWithOptions:queue:handler after user config, but iOS system still launch the app in the background.</li>
  <li>And I know that I could disable some code in the handler (the 3rd parameter), but I just want to disable the app from launching in the background.</li>
  </ol>
  
  <p>Does Apple provide some method to do that ? I searched everywhere with no result. Thanks for some ideas.</p>