English
English
简体中文
Register
Log In
English
English
简体中文
Register
Log In
Language
English
English
简体中文
Register
Log In

Why can't I use [TuyaSmartActivator sharedInstance] currentWifiSSID] to obtain the SSID?

Last Updated on2025-02-27 09:19:03
Starting from iOS 13, if geolocation permission is not enabled, [[TuyaSmartActivator sharedInstance] currentWifiSSID] will not get the correct SSID (if Wi-Fi permission is enabled), in this case, the system will return WLAN or Wi-Fi by default, and the developer email will receive an official email explanation, as shown below
After receiving the email, you need to turn on the access Wi-Fi information permission in Xcode10, you need the certificate to check the Access Wi-Fi Information selection. Path: SetAccess WiFi InformationtoONatXcode> [Project Name] >Targets> [Target Name] >Capabilities.
You can refer to the iOS certificate creation document to recreate the certificate for the specific process.

Click for services and help

Help Center