Is there a way to get the device id for android and ios, because when I do it for android using the device_info plugin, it says this:
MissingPluginException(No implementation found for method getAndroidDeviceInfo on channel plugins.flutter.io/device_info)
Turns out you don't actually need a package all the functionality to get Device info is inside a flutter class called flutter.io.
You can simply tap into it with this line of code as an import :
import 'dart:io' show Platform;
then to execute platform specific code you can use :
if (Platform.iOS)
{//your code}
else if (Platform.Android)
{//your other code}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With