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]: Android import issues with Notification Service Extension while migrating to v5 #834

Closed
1 task done
TheMeanCanEHdian opened this issue Jan 31, 2024 · 2 comments

Comments

@TheMeanCanEHdian
Copy link

TheMeanCanEHdian commented Jan 31, 2024

How can we help?

I am attempting to migrate to v5 but running into an import issue with the notification service extension.

I am getting unresolved reference when attempting to import IDisplayableMutableNotification, INotificationReceivedEvent, and INotificationServiceExtension as shown here.

I haven't seen any migration steps for the service extension. Is there something obvious here I have likely missed? I am doing the imports in a Kotlin file but do not believe that matters here.

Here is a screenshot of a minimal version of the file that is failing.

CleanShot 2024-01-30 at 21 12 48@2x

Any help would be appreciated.

Code of Conduct

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

GauravMcode commented Mar 28, 2024

@TheMeanCanEHdian Please verify that you have added one-signal dependency in your app/build.gradle file.

implementation 'com.onesignal:OneSignal:[5.0.0, 5.99.99]'

Screenshot 2024-03-29 042609

The above code fixed the import error which i was facing in mainactivity.kt

@jennantilla
Copy link
Contributor

Closing due to inactivity.

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

3 participants