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

[question]: setNotificationOpenedHandler Problem #624

Open
1 task done
furkeen opened this issue Dec 5, 2022 · 1 comment
Open
1 task done

[question]: setNotificationOpenedHandler Problem #624

furkeen opened this issue Dec 5, 2022 · 1 comment

Comments

@furkeen
Copy link

furkeen commented Dec 5, 2022

How can we help?

We have a project built with GetX and use OneSignal for notifications. There is a chat feature in the app and when user clicks on a “new message” notification, we’d like to navigate him/her to the related chat screen. However, the setNotificationOpenedHandler method, which is used to capture the additionalData property inside the notifications, is not fired in any way.

There is no any problem with notifications but we couldn’t catch any data while receiving. We tried with iOS real device both debug and release mode and our Flutter version is 3.3.4.

OneSignal package: onesignal_flutter: ^3.4.1

Do you have any idea?

[✓] Flutter (Channel stable, 3.3.4, on macOS 12.5 21G72 darwin-arm, locale tr-TR)
    • Flutter version 3.3.4 on channel stable at /Users/XXXXXX/Development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision eb6d86ee27 (9 weeks ago), 2022-10-04 22:31:45 -0700
    • Engine revision c08d7d5efc
    • Dart version 2.18.2
    • DevTools version 2.15.0

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] VS Code (version 1.73.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.54.0

[✓] HTTP Host Availability
    • All required HTTP hosts are available

Thanks in advance.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jordanmlacalle
Copy link

I am also seeing issues with this, but see that there are also several other related issues in this repo that have been opened/closed over the years. For me, this callback works properly when the app is in the background. But if the app is terminated, then it will not fire when the app launches (on iOS). Currently trying to find a workaround.

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

2 participants