-
Notifications
You must be signed in to change notification settings - Fork 214
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
WARNING: OneSignal has detected that your application delegate implements a deprecated method (application:didReceiveLocalNotification:). Please note that this method has been officially deprecated and the OneSignal SDK will no longer call it. You should u #68
Comments
@daniel-van-niekerk Thanks for the report. These entries are printed from the OneSignal-iOS-SDK that this Flutter SDK uses. The warning is noting that another part of your app, either your own native code or another plugin is using the I recommend checking the list of plugins in your project and seeing if you have one for local notifications. If so please open an issue with the that plugin developer to have them upgrade to the |
onesignal-flutter:2.1.0, I got this issue even in new flutter app (flutter create). I found this in FlutterPlugin.h (ios/.symlinks/flutter/ios): /**
* Calls all plugins registered for `UIApplicationDelegate` callbacks.
*/
- (void)application:(UIApplication*)application
didReceiveLocalNotification:(UILocalNotification*)notification
API_DEPRECATED(
"See -[UIApplicationDelegate application:didReceiveLocalNotification:] deprecation",
ios(4.0, 10.0)); |
Can confirm, perhaps the new stable channel flutter build |
I've got |
Same issue |
2.6.0 and flutter 1.20, same issue, with a new project |
Same issue, is there's any solution for this? I had implement UNUserNotificationCenter but still getting this warning. Do I need any configure in Xcode app delegate? |
I am also having this with 2.6.0 and Flutter 1.20.4. |
Same issue. Using Flutter v1.20.4 and oneSignal v2.6.1 |
Same here |
@rgomezp Can we please re-open this issue? It is clearly an open problem with no resolution. |
Any update? |
Having the same issue, commenting because it seems not being addressed. I am on Flutter 1.22 and OneSignal ^2.6.3 I am not able to subscribe users from ios to one signal, however, the android works great. Moreover, this seems to be a onesignal issue primarily as I can reproduce the same issue on a newly created project with no other dependencies. Please address this asap!!! |
same problem on flutter 1.22, onesignal 2.6.3 |
Same warning here! |
Same issue here. Any solution? |
Same here, any solution ? Flutter 2.0.3 |
Howdy, Thanks for your patience, y'all |
Hi, any update on that one? The warning is still happening with version 3.0.0-beta2 |
Hey all! This is a problem with flutter integration. From OneSignal, we detect this method |
Based on this response from @stuartmorgan, this is an issue in this plugin, not Flutter:
|
Yeah, the problem is that OneSignal detects when the |
@Jeasmine I'm sorry but I have to insist that this is an open issue in this plugin that can and should be resolved by OneSignal. This plugin should NOT print this warning to the console. Instead, it should detect which version of iOS the app is running on, handle this method on iOS 8 and 9, and handle it properly with the new API for newer versions of iOS. |
What is the "it" that you believe Flutter does not support here? I don't understand why you are trying to frame this as a bug in Flutter. |
Hey @stuartmorgan, Sorry for the misunderstanding, I just wanted to explain what the log is trying to say. It is not a bug under Flutter, but because they support and implement the method |
Any update on this? |
Any update?? |
Please note that this method has been officially deprecated and the OneSignal SDK will no longer call it. You should use UNUserNotificationCenter instead |
Any updates @Jeasmine ? |
Any news on this subject? |
Is there any fix for this? I am using Flutter version 1.20 and I am not receiving notification on iOS deviceUNUserNotificationCenter delegate received call to -userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler: but the completion handler was never called. |
Flutter version: 3.7.12 |
Hi all, I apologize for the delayed response but we don't have an update on the removal of this warning. This warning is issued by the OneSignal native iOS SDK due to some detection related to Flutter and can be safely ignored when using our Flutter SDK. @mHassan20896 Is your error resolved or still happening for you? @anmolgupta321 This warning can be safely ignored. The 'APNs BAD DEVICE TOKEN' is a separate issue, and may be because you are using an iOS simulator. Push notifications are generally not supported on simulators so it is best to test with a physical device. We will be able to support simulator push notifications in this SDK soon. |
why issue closed ? I have same problem my flutter version is 3.19.6 onesignal version is onesignal_flutter: ^3.2.7 can you help me ? |
Hi @Selingungor90, if you are not calling that method yourself, it can be ignored. |
The sdk complains about this.
WARNING: OneSignal has detected that your application delegate implements a deprecated method (application:didReceiveLocalNotification:). Please note that this method has been officially deprecated and the OneSignal SDK will no longer call it. You should use UNUserNotificationCenter instead
I read an issue on the OneSignal IOS sdk github that the sdk needed updating.
My flutter version is 1.2.1 and the onesignal-flutter plugin is ^1.1.0
The text was updated successfully, but these errors were encountered: