Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flutter_local_notifications ERROR IN APPDELEGATE.SWIFT #2439

Open
roniejapz5 opened this issue Oct 30, 2024 · 1 comment
Open

flutter_local_notifications ERROR IN APPDELEGATE.SWIFT #2439

roniejapz5 opened this issue Oct 30, 2024 · 1 comment

Comments

@roniejapz5
Copy link

import Flutter
import UIKit
import flutter_local_notifications

@main
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {

FlutterLocalNotificationsPlugin.setPluginRegistrantCallback { (registry) in
   GeneratedPluginRegistrant.register(with: registry)
}

GeneratedPluginRegistrant.register(with: self)

if #available(iOS 10.0, *) {
  UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate
}

return super.application(application, didFinishLaunchingWithOptions: launchOptions)

}
}


ERROR BELOW


Launching lib/main.dart on iPhone 16 Pro Max in debug mode...
Running Xcode build...
Xcode build done. 13.9s
Failed to build iOS app
Swift Compiler Error (Xcode): No such module 'flutter_local_notifications'
/Users/roniejapz/FlutterProjects/firewatch7/ios/Runner/AppDelegate.swift:2:7

Could not build the application for the simulator.
Error launching application on iPhone 16 Pro Max.

@roniejapz5
Copy link
Author

Swift Compiler Error (Xcode): No such module 'flutter_local_notifications'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant