Plugins could avoid warnings by installing UIApplicationDelegate methods dynamically
### Issue about warning message on console https://github.com/flutter/engine/pull/8843 Right now iOS apps have the following in their logs: > You've implemented -[ application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist. A possible improvement would be to avoid implementing that method directly, and instead only add an implementation using `class_addMethod` if we detect that it's needed for registered plugins. If no plugin implements `application:didReceiveRemoteNotification:fetchCompletionHandler:` then `FlutterAppDelegate` wouldn't implement it either, and thus would avoid the warning. The same could be done for other `UIApplicationDelegate` methods as well. /cc @mravn-google @szakarias @jakobr-google @mit-mit @Hixie @goderbauer ------------------------------------------------------------------------------------------------------------------------ Edited by cyanglaz: _The original issue mentioned above has been fixed with https://github.com/flutter/engine/pull/8843. However, there is a related but different issue regarding receiving email warning from Apple when uploading builds. I have summarized the discussions and works related to it in below section for easier understanding the bug and where we are at:_ ### Issue about warning email from Apple When uploading a Flutter App to Apple, one might receive an warning Email like below: ``` De
Posted by collinjackson on May 11, 2017, 1:28 AM
Tags
Related issues
- 2026 - Microsoft Office 365
- [Ubuntu] `ubuntu-latest` label will use Ubuntu 26.04 in November 2026
- Gamut mapping
- [Codex Desktop] Editing and resending a queued message triggers "App-server queued follow-up no longer exists"
- [Windows] ChatGPT 26.820.60940 fails with "invalid transport in mcp_servers.codex_app"; Beta 26.727.40816 works
- [BUG]: infinite loading of videos
Raise real-world problems, find people facing the same issue, and discuss solutions.4,500 issues0 comments
github (SaaS)
2026 - Microsoft Office 365
[Ubuntu] `ubuntu-latest` label will use Ubuntu 26.04 in November 2026
Gamut mapping
[Codex Desktop] Editing and resending a queued message triggers "App-server queued follow-up no longer exists"
[Windows] ChatGPT 26.820.60940 fails with "invalid transport in mcp_servers.codex_app"; Beta 26.727.40816 works
[BUG]: infinite loading of videos
Restore GPT-5.6 Sol’s 372k Codex context window, or provide an opt-in setting
Codex Desktop for macOS repeatedly triggers `syspolicyd` / `trustd` CPU and memory runaway
Plugins could avoid warnings by installing UIApplicationDelegate methods dynamically
### Issue about warning message on console https://github.com/flutter/engine/pull/8843 Right now iOS apps have the following in their logs: > You've implemented -[ application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist. A possible improvement would be to avoid implementing that method directly, and instead only add an implementation using `class_addMethod` if we detect that it's needed for registered plugins. If no plugin implements `application:didReceiveRemoteNotification:fetchCompletionHandler:` then `FlutterAppDelegate` wouldn't implement it either, and thus would avoid the warning. The same could be done for other `UIApplicationDelegate` methods as well. /cc @mravn-google @szakarias @jakobr-google @mit-mit @Hixie @goderbauer ------------------------------------------------------------------------------------------------------------------------ Edited by cyanglaz: _The original issue mentioned above has been fixed with https://github.com/flutter/engine/pull/8843. However, there is a related but different issue regarding receiving email warning from Apple when uploading builds. I have summarized the discussions and works related to it in below section for easier understanding the bug and where we are at:_ ### Issue about warning email from Apple When uploading a Flutter App to Apple, one might receive an warning Email like below: ``` De
Comments (0)
No comments yet. Start the discussion.