What occurred?
App doesn’t begin correctly (MissingPluginException(No implementation discovered for technique OneSignal#initialize on channel OneSignal)
due to OneSignal package deal problem which is ONLY occurring on Android Launch Construct, on android debug construct it’s working wonderful. On iOS it’s working wonderful additionally.
Logs:
✓ Constructed construct/app/outputs/flutter-apk/app-release.apk (43.4MB)
I/flutter (15134): [IMPORTANT:flutter/shell/platform/android/android_context_gl_impeller.cc(94)] Utilizing the Impeller rendering backend (OpenGLES).
E/flutter (15134): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: MissingPluginException(No implementation discovered for technique OneSignal#initialize on channel OneSignal)
E/flutter (15134): #0 MethodChannel._invokeMethod (package deal:flutter/src/companies/platform_channel.dart:368)
E/flutter (15134):
E/flutter (15134):
E/flutter (15134): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: MissingPluginException(No implementation discovered for technique OneSignal#lifecycleInit on channel OneSignal#inappmessages)
E/flutter (15134): #0 MethodChannel._invokeMethod (package deal:flutter/src/companies/platform_channel.dart:368)
E/flutter (15134):
E/flutter (15134): #1 OneSignalInAppMessages.lifecycleInit (package deal:onesignal_flutter/src/inappmessages.dart:77)
E/flutter (15134):
E/flutter (15134):
E/flutter (15134): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: MissingPluginException(No implementation discovered for technique OneSignal#lifecycleInit on channel OneSignal#consumer)
E/flutter (15134): #0 MethodChannel._invokeMethod (package deal:flutter/src/companies/platform_channel.dart:368)
E/flutter (15134):
E/flutter (15134): #1 OneSignalUser.lifecycleInit (package deal:onesignal_flutter/src/consumer.dart:197)
E/flutter (15134):
E/flutter (15134):
E/flutter (15134): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: MissingPluginException(No implementation discovered for technique OneSignal#pushSubscriptionToken on channel OneSignal#pushsubscription)
E/flutter (15134): #0 MethodChannel._invokeMethod (package deal:flutter/src/companies/platform_channel.dart:368)
E/flutter (15134):
E/flutter (15134): #1 OneSignalPushSubscription.lifecycleInit (package deal:onesignal_flutter/src/pushsubscription.dart:66)
E/flutter (15134):
E/flutter (15134):
E/flutter (15134): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: MissingPluginException(No implementation discovered for technique OneSignal#permission on channel OneSignal#notifications)
E/flutter (15134): #0 MethodChannel._invokeMethod (package deal:flutter/src/companies/platform_channel.dart:368)
E/flutter (15134):
E/flutter (15134): #1 OneSignalNotifications.lifecycleInit (package deal:onesignal_flutter/src/notifications.dart:118)
E/flutter (15134):
E/flutter (15134):
E/flutter (15134): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: MissingPluginException(No implementation discovered for technique OneSignal#requestPermission on channel OneSignal#notifications)
E/flutter (15134): #0 MethodChannel._invokeMethod (package deal:flutter/src/companies/platform_channel.dart:368)
E/flutter (15134):
E/flutter (15134): #1 OneSignalNotifications.requestPermission (package deal:onesignal_flutter/src/notifications.dart:88)
E/flutter (15134):
E/flutter (15134): #2 fundamental. (package deal:iu_app/fundamental.dart:87)
E/flutter (15134):
E/flutter (15134):
E/flutter (15134): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: MissingPluginException(No implementation discovered for technique OneSignal#addNativeClickListener on channel OneSignal#notifications)
E/flutter (15134): #0 MethodChannel._invokeMethod (package deal:flutter/src/companies/platform_channel.dart:368)
E/flutter (15134):
E/flutter (15134):
Steps to breed?
1. Replace OneSignal to model 5.3.4
2. Use Flutter Model 3.29.2
3. Attempt to initialize OneSignal in fundamental.dart
4. Run the mission in Android Manufacturing
—- Code —-
void fundamental() async {
WidgetsFlutterBinding.ensureInitialized();
if (Constants.isCrashlyticsEnabled) {
await Firebase.initializeApp(
choices: DefaultFirebaseOptions.currentPlatform);
FlutterError.onError = FirebaseCrashlytics.occasion.recordFlutterError;
}
OneSignal.initialize(Constants.onesignalAppID);
// some code that calls OneSignal.Person.setLanguage()
// .... another code
if (kDebugMode) {
OneSignal.Debug.setLogLevel(OSLogLevel.verbose);
}
// The promptForPushNotificationsWithUserResponse perform will present the iOS or Android push notification immediate. We suggest eradicating the next code and as an alternative utilizing an In-App Message to immediate for notification permission
OneSignal.Notifications.requestPermission(false).then((accepted) {
Helper.talker.debug("Accepted permission: $accepted");
});
OneSignal.Notifications.addClickListener((openedResult) {
openedFromNotfication = true;
});
runApp(
ChangeNotifierProvider(
create: (context) => settingsProvider,
baby: const MyApp(),
),
);
}
What did you count on to occur?
OneSignal ought to be initialized and dealing wonderful like in debug mode.
OneSignal Flutter SDK model
Launch 3.29.2
Which platform(s) are affected?
Related log output
$ flutter physician -v
[✓] Flutter (Channel steady, 3.29.2, on macOS 15.3.2 24D81 darwin-arm64, locale en-SA) [5.5s]
• Flutter model 3.29.2 on channel steady at /Customers/myuser/fvm/variations/3.29.2
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision c236373904 (8 months in the past), 2025-03-13 16:17:06 -0400
• Engine revision 18b71d647a
• Dart model 3.7.2
• DevTools model 2.42.3
[✓] Android toolchain - develop for Android units (Android SDK model 35.0.0) [10.0s]
• Android SDK at /Customers/myuser/Library/Android/sdk
• Platform android-35, build-tools 35.0.0
• Java binary at: /Functions/Android Studio.app/Contents/jbr/Contents/House/bin/java
That is the JDK bundled with the most recent Android Studio set up on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java model OpenJDK Runtime Atmosphere (construct 21.0.5+-12932927-b750.29)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.3) [9.8s]
• Xcode at /Functions/Xcode.app/Contents/Developer
• Construct 16E140
• CocoaPods model 1.16.2
[✓] Chrome - develop for the net [45ms]
• Chrome at /Functions/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (model 2024.3) [41ms]
• Android Studio at /Functions/Android Studio.app/Contents
• Flutter plugin may be put in from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin may be put in from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java model OpenJDK Runtime Atmosphere (construct 21.0.5+-12932927-b750.29)
[✓] Related system (4 accessible) [10.8s]
• FRL L22 (cellular) • 8QCNW22629000690 • android-arm64 • Android 10 (API 29)
• macOS (desktop) • macos • darwin-arm64 • macOS 15.3.2 24D81 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.3.2 24D81 darwin-arm64
• Chrome (internet) • chrome • web-javascript • Google Chrome 142.0.7444.60
! Error: Looking on the native space community for iPhone 15 Professional G. Make sure the system is unlocked and connected with a
cable or related to the identical native space community as this Mac.
The system should be opted into Developer Mode to attach wirelessly. (code -27)
! Error: Looking on the native space community for iPhone (650). Make sure the system is unlocked and connected with a cable
or related to the identical native space community as this Mac.
The system should be opted into Developer Mode to attach wirelessly. (code -27)
! Error: Looking on the native space community for iPhone. Make sure the system is unlocked and connected with a cable or
related to the identical native space community as this Mac.
The system should be opted into Developer Mode to attach wirelessly. (code -27)
[✓] Community sources [991ms]
• All anticipated community sources can be found.
• No points discovered!
