Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should connectToProtectedSSIDPrefix work in the iPhone Simulator? #71

Closed
peetzweg opened this issue Apr 27, 2020 · 3 comments
Closed

Should connectToProtectedSSIDPrefix work in the iPhone Simulator? #71

peetzweg opened this issue Apr 27, 2020 · 3 comments
Labels
question Question about any part of the module

Comments

@peetzweg
Copy link
Contributor

I've been trying to get connectToProtectedSSIDPrefix to work.
The JS error states
Error while configuring WiFi
Whereas the XCode console states
NEHotspotConfigurationHelper failed to communicate to helper server.

The answer in the apple dev forums says I need to have certain entitlements enabled.
https://forums.developer.apple.com/thread/127834

I double-checked and surely have all the mentioned entitlements enabled. Even enabled the NetworkExtension entitlement (https://developer.apple.com/documentation/networkextension).
Which was also talked about in this issue => #32

Nevertheless, it does not work in the simulator and shows the same error. On the phone, however, it works, even without the NetworkExtension entitlements and only the ones mentioned in the apple dev forum.

So my assumption is that at least connectToProtectedSSIDPrefix is not usable in the simulator? Quite a pain if so, as it's also unpleasant to work with the phone especially if it's connecting to another wifi without the metro bundler running 🙃

@notjulian
Copy link
Collaborator

Hi,
you need to use a physical device ...
to debug use ngrok (ngrok http 8081) and change the default development server
and add these entitlements:
Screenshot 2020-05-21 at 13 07 21

@Rapsssito Rapsssito added the question Question about any part of the module label May 27, 2020
@Rapsssito
Copy link
Collaborator

So my assumption is that at least connectToProtectedSSIDPrefix is not usable in the simulator? Quite a pain if so, as it's also unpleasant to work with the phone especially if it's connecting to another wifi without the metro bundler running

Yes, connectToProtectedSSIDPrefix it is not usable on the simulator. Plus, the constant WiFi metro connection for React Native development does not make things easier.
If someone knows a hacky way, more than welcome!

@notjulian
Copy link
Collaborator

notjulian commented May 27, 2020

So my assumption is that at least connectToProtectedSSIDPrefix is not usable in the simulator? Quite a pain if so, as it's also unpleasant to work with the phone especially if it's connecting to another wifi without the metro bundler running

Yes, connectToProtectedSSIDPrefix it is not usable on the simulator. Plus, the constant WiFi metro connection for React Native development does not make things easier.
If someone knows a hacky way, more than welcome!

hi @Rapsssito ,
I've used this method
change bundler to a internet bundler using a ngrok tunnel

  1. ngrok http 8081
    Screenshot 2020-05-27 at 16 06 10

  2. On the iPhone configure bundler
    Screenshot 2020-05-27 at 16 07 22

  3. Paste http address and change port to 80
    Screenshot 2020-05-27 at 16 05 47

@github-actions github-actions bot added the stale label Jun 29, 2020
Repository owner deleted a comment from github-actions bot Jul 1, 2020
@Rapsssito Rapsssito removed the stale label Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question about any part of the module
Projects
None yet
Development

No branches or pull requests

3 participants