I'm facing an issue after building my Flutter app (especially in release mode). The app crashes or throws the following errors related to SharedPreferences and FlutterToast plugins.
I/flutter (10569): SharedPreferences init failed:
PlatformException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.shared_preferences_android.SharedPreferencesApi.getAll", null, null)
I/flutter (10569): user auth permission
E/flutter (10569): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)]
Unhandled Exception: MissingPluginException(No implementation found for method showToast on channel PonnamKarthik/fluttertoast)
E/flutter (10569): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:365)
Flutter version: 3.35.7
Plugins used:
shared_preferences: ^2.5.3
fluttertoast: ^9.0.0