-
Notifications
You must be signed in to change notification settings - Fork 721
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
Tap doesn't dismiss the message when I have a callback? And sliding doesn't call the callback at all? #201
Comments
I'm having the same issue. I can't dismiss nor slide it up. The callback instead gets called each time. A quick fix for allowing dismissal upon clicking is to simply call Also, the above still won't solve the sliding up problem. |
"And when I slide it up instead of tapping the callback is not triggered." I think this is by design and not a bug. When the user slides up, he clearly does not want the notification or is not interested to go into more detail concerning the specific notification; similar to Apple's notification UI. So I believe, this is intended behavior. As far as the other issue is concerned: @dilizarov provided the fix — add |
I think everhing is OK with the logic except that when The fix would be to implement a delegate method
Probably it would be better to save GSs to member variables and make a check instead of just returning |
No need to change library itself, just use as a callback: function when showing notification |
This code will show a message that will be dismissed when you tap on it, or slide it up:
This code however will execute the callback but not dismiss? And when I slide it up instead of tapping the callback is not triggered.
The text was updated successfully, but these errors were encountered: