smaho-engineering / esptouch_flutter

ESP-Touch Dart API for Flutter. Platform-specific implementation for Android (Java) and iOS (Objective-C).
https://pub.dev/packages/esptouch_flutter
MIT License
100 stars 34 forks source link

ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method ssid on channel eng.smaho.com/esptouch_plugin/example) #32

Closed sukesh0096 closed 2 years ago

sukesh0096 commented 2 years ago

can't fetch current wifi ssid and bssid.

getting the below error.

ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method ssid on channel eng.smaho.com/esptouch_plugin/example)

vincevargadev commented 2 years ago

Use the network_info_plus package to get the WiFi SSID and BSSID of the user (and the connectivity_plus package if your app needs it). You might also need the permission_handler to ask the user for permission for your app to be able to access the WiFi details.

The example app uses platform specific code (you can find it here on iOS and here on Android) that is part of the example app.

We have an issue (#10) for updating the example app, community contributions are welcome.

For real apps, I recommend you use the plugins that I mentioned above in the first paragraph of this comment.