You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
before public void remoteNotificationReceived(Context context, OSNotificationReceivedEvent notificationReceivedEvent) works
but now public void onNotificationReceived(INotificationReceivedEvent event) how do i get app context?
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Hi, I'm having this same issue using the new onNotificationReceived method in NotificationServiceExtension.
I was using the old version before (was named remoteNotificationReceived) and it had the context and notificationReceivedEvent as parameter, but the new version only has the event. In my implementation, I'm using the context to start a service in my app, but now I have no idea about how to get the current app context. The service is supposed to start with the app closed, so I can't get it from somewhere else in the app, it has to be from the INotificationServiceExtension class or the onNotificationReceived method.
How can we help?
In NotificationServiceExtension
before public void remoteNotificationReceived(Context context, OSNotificationReceivedEvent notificationReceivedEvent) works
but now public void onNotificationReceived(INotificationReceivedEvent event) how do i get app context?
Code of Conduct
The text was updated successfully, but these errors were encountered: