espressif / esp-idf-provisioning-ios

Apache License 2.0
134 stars 64 forks source link

ESP SoftAP prov APP on appstore with version 2.0.11 can't provision aws/freertos softap esp32 #33

Open Devyami-Apcon opened 3 years ago

Devyami-Apcon commented 3 years ago

I am using amazon freertos latest version(main) which has a softAP support which we can initiate start just by a macro.

Unfortunately, I am unable to provide my device using the ESP SOftAP Prov app on AppStore which shows version 2.0.11 However, android app store which shows version 2.0.8 is successfully able to provision the device.

Problem - the app says you to connect to the AP, but after i connect to the AP, there are no further steps or buttons which can start the further process. It keeps redirecting me to settings.

What can i do ?

Image - in this image i am connected to the AP but still it keeps showing me this page

IMG_3689

IMG_3690

vikas-chandra-mnnit commented 3 years ago

Hi @Devyami-Apcon, this issue is occurring due to the new Network Privacy permission introduced by Apple from iOS 14. Below are the couple of steps you can try to connect to the device:

  1. Check and make sure local network permission is enabled for the app in iPhone settings.
  2. Make sure you have the latest version of iOS. As some people have faced this issue on iOS version 14.5 but in 14.6 this is not occurring.

If you are still not able to proceed then please reply here with additional information like the iOS version and device logs, thanks.

Devyami-Apcon commented 3 years ago

@vikas-chandra-mnnit thanks for your prompt reply.

I am using IOS 14.6 itself.

I did find local network permission in privacy settings, however the current app is not requesting for the particular permission hence it is not showing in the table to toggle-on the permission.

vikas-chandra-mnnit commented 3 years ago

@vikas-chandra-mnnit thanks for your prompt reply.

I am using IOS 14.6 itself.

I did find local network permission in privacy settings, however the current app is not requesting for the particular permission hence it is not showing in the table to toggle-on the permission.

Can you please try to restart or re-install the app? Let us know if the app does not ask for permission while connecting to the device.

Devyami-Apcon commented 3 years ago

I tried it on iPhone 12, in that it is asking for the permission but somehow it is not asking for that particular permission on my iPhone11

Is that because my cloud might have stored the configuration even when I delete the app ?

vikas-chandra-mnnit commented 3 years ago

I tried it on iPhone 12, in that it is asking for the permission but somehow it is not asking for that particular permission on my iPhone11

Is that because my cloud might have stored the configuration even when I delete the app ?

It is likely that the app is running with an old configuration if the problem persists while re-installing the app we will try to replicate the same behaviour.

Devyami-Apcon commented 3 years ago

Possibly, because I had downloaded the SoftAP app way before I updated my iOS version.

Now it seems it has stuck with the old configuration.

vikas-chandra-mnnit commented 3 years ago

Possibly, because I had downloaded the SoftAP app way before I updated my iOS version.

Now it seems it has stuck with the old configuration.

Is that old configuration still persists even on re-installing the app?

Devyami-Apcon commented 3 years ago

Yes it does.

It does ask for other permissions but not for local network permission.

On my iPhone 12, there is a clear option to toggle in settings>privacy>local network >ESP SoftAP Prov

But nothing of that sort appears on my iPhone 11.

vikas-chandra-mnnit commented 3 years ago

Yes it does.

It does ask for other permissions but not for local network permission.

On my iPhone 12, there is a clear option to toggle in settings>privacy>local network >ESP SoftAP Prov

But nothing of that sort appears on my iPhone 11.

Thanks for the information we will look into it and revert back in case of any update.

Devyami-Apcon commented 3 years ago

@vikas-chandra-mnnit

I have found a workaround.

I deleted my app from the cloud storage and then again reinstalled it after which it is working.

However this is not a proper way, I suggest you guys must initiate a pop up even with the old configs.

Thanks

vikas-chandra-mnnit commented 3 years ago

@vikas-chandra-mnnit

I have found a workaround.

I deleted my app from the cloud storage and then again reinstalled it after which it is working.

However this is not a proper way, I suggest you guys must initiate a pop up even with the old configs.

Thanks

Thanks, @Devyami-Apcon for suggesting the workaround. Unfortunately, this pop-up is not initiated by the app but is controlled by iOS, so the app does not have any control over it. Despite that, we will definitely look for a better resolution.