cylankj / IoTKit-iOS

0 stars 1 forks source link

Device binding is failing all the time on iOs 13 #3

Open KonstantinRitt opened 5 years ago

KonstantinRitt commented 5 years ago

Since iOs 12, [JFGSDKToolMethods currentWifiName] returns an empty string due to stricter requirements for gathering the current WiFi configuration via CNCopyCurrentNetworkInfo(). That was simple -- the "com.apple.developer.networking.wifi-info" key is required in the app's entitlements file.

Since iOs 13, [JFGSDKToolMethods currentWifiName] returns an empty string with "com.apple.developer.networking.wifi-info" key either, due to even stricter requirements for gathering the current WiFi configuration via CNCopyCurrentNetworkInfo(). This time, the app would have to link with the Core Location framework and thus request an authorization from the user, which is NOT what we're using JFGSDK for!

Plz remove that tricky currentWifiName from JFGSDKToolMethods + any usages of CNCopyCurrentNetworkInfo() from the SDK itself.

yangli0168 commented 4 years ago

已在sdk中增加isIgnoreApModel属性,供开发者自己判断

KonstantinRitt commented 4 years ago

https://github.com/cylankj/IoTKit-iOS/search?q=IgnoreApModel&unscoped_q=IgnoreApModel shows there is no such attribute in the [publically available] SDK. could you point me out to the exact code where it is implemented?