Closed MuhammedRefaat closed 6 months ago
@MuhammedRefaat unfortunately I haven't been able to reproduce this. I am using the example app, and setting an IAM to fire on app open, all IAM-related callbacks are being called.
One thing to try is to call OneSignal.shared.setInAppMessageClickedHandler
prior to OneSignal.shared.setAppId
to ensure the handler has been setup before the IAM has been shown. If this does not resolve it, would you be able to provide a sample repo which reproduces the error you're seeing?
Thanks!
We're having the exact issue in our project as well.
Tried calling the OneSignal.shared.setInAppMessageClickedHandler
before setAppId
and nothing changes
Hello everyone! Apologies that this issue has gone stale.
I'd like to request that everyone update to our latest major release of the Flutter SDK which includes many improvements and enhancements. Please refer to our migration guide for full details on upgrading.
If this issue still persists after the update, please open a new issue and we can continue investigation.
Thanks!
What happened?
I'm using Flutter SDK for sending InApp messages to my Flutter app, and using triggers to trigger these messages on certain occasions. I've implemented everything according to the documentation, and created the required message template in the dashboard, but when triggering the inApp message and making any action on it the corresponding action listener
setInAppMessageClickedHandler
is not getting fired at all in iOS. Then I tried to add other listeners likesetOnWillDismissInAppMessageHandler
orsetOnDidDisplayInAppMessageHandler
but non of them got fired.Worth to mention that everything is working perfectly in android and all the listeners are working properly. Worth to mention also that upon clicking on the action in the message, I'm getting some logs that seems to catch the inApp message actions but they are not implemented anywhere in my app (you can find them below in the logs section).
Related code:
Steps to reproduce?
What did you expect to happen?
Once doing the action, the message should be dismissed and the inAppMessageHandler should be triggered, but instead nothing happen.
OneSignal Flutter SDK version
onesignal_flutter: ^3.4.1
Which platform(s) are affected?
Relevant log output
Code of Conduct