williamrijksen / com.williamrijksen.onesignal

Titanium Appcelerator Library for OneSignal Push Notifications Service
Other
51 stars 43 forks source link

Event for clicking on notification buttons #82

Open deckameron opened 5 years ago

deckameron commented 5 years ago

Hi @williamrijksen Thank you for the module!

Is is possible to differentiate the notification click from a notification button click on Android? I noticed that both, notification and notification buttons trigger the the same event (notificationOpened), so it is not possible to implement any particular behavior for the buttons. Am I right? Or am I missing something here?

I would like to prevent the App from opening and just perform a few data saving on the App.

Thanks!

SilvioLuis commented 5 years ago

I have the same doubt @williamrijksen

deckameron commented 4 years ago

@SilvioLuis I have implemented it but can prevent the from opening because it requires a manifest tag and would prevent all notifications from opening the app. If you want to check it out, here it is.