mkloubert / nativescript-toolbox

A NativeScript module that is a composition of useful tools and helpers.
MIT License
55 stars 14 forks source link

openWifiSettings doesn't work on IOS #1

Closed kintaroHorowitz closed 7 years ago

kintaroHorowitz commented 7 years ago

Function openWifiSettings works perfectly on my android device(old 4.4.2) but does not on 2 different iphones(5s/6s) with ios9 and ios10.

[ERROR] (nativescript-toolbox).openWifiSettings(): TypeError: UIApplication.sharedApplication is not a function. (In 'UIApplication.sharedApplication()', 'UIApplication.sharedApplication' is an instance of UIApplication)

mkloubert commented 7 years ago

@kintaroHorowitz

I have released version 1.49.0 that should fix the bug and be compatible with iOS 10.

kintaroHorowitz commented 7 years ago

Thanks that was fast. Unfortunately I'm getting this error now:

node_modules/nativescript-toolbox/Device.ios.js:228:51) Error: -[__NSCFString scheme]: unrecognized selector sent to instance 0x1702488e0

Sorry I can't help more to solve I'm beginner with nativescript.

mkloubert commented 7 years ago

@kintaroHorowitz

Sorry, I submitted wrong data type. Try 1.49.1...

kintaroHorowitz commented 7 years ago

@mkloubert

Thanks a lot, it is now working on both platforms.