but it doesn't work:(
vendor-es2015.js:41296 ERROR TypeError: Cannot read property 'getCurrentSSID' of undefined at TestPage.getCurrentSSid (pages-test-test-module-es2015.js:397) at TestPage_Template_ion_button_click_32_listener (TestPage.js:139) at executeListenerWithErrorHandling (vendor-es2015.js:51415) at wrapListenerIn_markDirtyAndPreventDefault (vendor-es2015.js:51450) at HTMLElement.<anonymous> (vendor-es2015.js:77049) at ZoneDelegate.invokeTask (polyfills-es2015.js:3505) at Object.onInvokeTask (vendor-es2015.js:64524) at ZoneDelegate.invokeTask (polyfills-es2015.js:3504) at Zone.runTask (polyfills-es2015.js:3273) at ZoneTask.invokeTask [as invoke] (polyfills-es2015.js:3586)
hi, my code :
declare WifiWizard: any
getCurrentSSid() { this.WifiWizard.getCurrentSSID(win => { if(win) { this.logger.debug('getCurrentSSID:', win); } }) }
but it doesn't work:(
vendor-es2015.js:41296 ERROR TypeError: Cannot read property 'getCurrentSSID' of undefined at TestPage.getCurrentSSid (pages-test-test-module-es2015.js:397) at TestPage_Template_ion_button_click_32_listener (TestPage.js:139) at executeListenerWithErrorHandling (vendor-es2015.js:51415) at wrapListenerIn_markDirtyAndPreventDefault (vendor-es2015.js:51450) at HTMLElement.<anonymous> (vendor-es2015.js:77049) at ZoneDelegate.invokeTask (polyfills-es2015.js:3505) at Object.onInvokeTask (vendor-es2015.js:64524) at ZoneDelegate.invokeTask (polyfills-es2015.js:3504) at Zone.runTask (polyfills-es2015.js:3273) at ZoneTask.invokeTask [as invoke] (polyfills-es2015.js:3586)