Closed
Description
Steps to Reproduce
Sample code found in the example project of the plugin I've been developing at https://github.com/MaikuB/flutter_local_notifications/tree/didReceiveLocalNotificationIssue
Create a plugin and in the iOS code for that plugin. Add the plugin as an application delegate
[registrar addApplicationDelegate:instance];
add code to handle when a local notification has been received
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification
{
...
}
Add code to display a notification and run the app on an iOS device older than version 10 (tried this on an iOS 9 simulator). didReceiveLocalNotification is never fired but other application delegate methods like detecting if the app has entered the background are working fine.
Logs
flutter run logs
No issues found through flutter analyze command
Flutter Doctor
[✓] Flutter (Channel beta, v0.2.8, on Mac OS X 10.13.3 17D102, locale en-AU)
• Flutter version 0.2.8 at /Users/michaelbui/flutter
• Framework revision b397406561 (2 weeks ago), 2018-04-02 13:53:20 -0700
• Engine revision c903c217a1
• Dart version 2.0.0-dev.43.0.flutter-52afcba357
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/michaelbui/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = /Users/michaelbui/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.3, Build version 9E145
• ios-deploy 1.9.2
• CocoaPods version 1.4.0
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] IntelliJ IDEA Community Edition (version 2017.3.5)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 23.0.2
• Dart plugin version 173.4700
[✓] VS Code (version 1.22.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Dart Code extension version 2.11.2
[✓] Connected devices (1 available)
• iPhone 6s Plus • 30903B0A-AC8E-411A-A1A9-08246FE97C7F • ios • iOS 9.0 (simulator)
• No issues found!
Metadata
Metadata
Assignees
Labels
No labels