EFNEHotspotHelperDemo icon indicating copy to clipboard operation
EFNEHotspotHelperDemo copied to clipboard

NEHotspotHelperCommand closure never executed.

Open chetan15aggarwal opened this issue 6 years ago • 4 comments

Line 73: BOOL returnType = [NEHotspotHelper registerWithOptions: options queue: queue handler: ^(NEHotspotHelperCommand * cmd) { }

Always return false. I am using: Xcode 9.4.1 MacOS 10.13.3

Capabilities added: Background mode(All), Hotspot configuration, Network Extension(All) and Wireless Accessory Configuration.

My entitlements are also updated in provisioning profile. Excution on iPhone 7 , working fine but closure is never called.

Note: I have also tired to change the queue attribute to concurrent as well.

chetan15aggarwal avatar Jul 04 '18 10:07 chetan15aggarwal

@chetan15aggarwal You need to click the button "Open WiFi Setting" to open WiFi list inSetting.

EyreFree avatar Jul 05 '18 14:07 EyreFree

@EyreFree I have tried "Open Wifi Setting" b button, it opens the setting / Wifi screen, even on connecting to a particular Wifi and went back to my application but still my registerWithOption Method never called up.

I think it must be due to HotspotHelper Entitlement, which I haven't requested to Apple Network Extension team. This process will take around 2-3 days, once done I'll check the app again.

Thanks

chetan15aggarwal avatar Jul 06 '18 07:07 chetan15aggarwal

BOOL returnType = [NEHotspotHelper registerWithOptions: options queue: queue handler: ^(NEHotspotHelperCommand * cmd) { }

Still return false. I am using: Xcode 10.2.1

@chetan15aggarwal Did you get any solution or able to get wifi list?

Skkumawat avatar Jul 05 '19 09:07 Skkumawat

No, not as of now.

On Fri, Jul 5, 2019 at 2:56 PM Skkumawat [email protected] wrote:

BOOL returnType = [NEHotspotHelper registerWithOptions: options queue: queue handler: ^(NEHotspotHelperCommand * cmd) { }

Still return false. I am using: Xcode 10.2.1

@chetan15aggarwal https://github.com/chetan15aggarwal Did you get any solution or able to get wifi list?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/EyreFree/EFNEHotspotHelperDemo/issues/2?email_source=notifications&email_token=AE7PIWMKXCX6DE3ISWOJPLTP54HU5A5CNFSM4FIJMXVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZJBHBQ#issuecomment-508695430, or mute the thread https://github.com/notifications/unsubscribe-auth/AE7PIWMOGY4KQUPXHF2TTM3P54HU5ANCNFSM4FIJMXVA .

-- Many Thanks & Best Regards Chetan Aggarwal Mob:+91 9654542339

chetan15aggarwal avatar Aug 10 '19 13:08 chetan15aggarwal