Closed welcome14 closed 1 week ago
@welcome14 we need a bit more information to investigate:
@Keep
to your class the implements INotificationServiceExtension
?
i have disable the minification, and it works!
buildTypes { release { minifyEnabled true } }
@welcome14 does adding @Keep
to your class also solve the problem? As it is recommended to use minification in release builds.
Same problem here, but solved with @Keep
.
Setting minifyEnabled false worked for release app, so as @jkasten2 said I added @Keep
to my implementation of OneSignal.OSRemoteNotificationReceivedHandler
(I'm still in OneSignal 4.8) and it worked!
I think the problem is related to the upgrade of AGP from v7 to v8, this will make that the minify goes too far away...
What happened?
the service INotificationServiceExtension is called when i use a debug mode, but when i create a build in release mode, the service not work.
minSdkVersion 21 targetSdkVersion 34 compileSdk 34 buildToolsVersion '35.0.0 rc2'
Steps to reproduce?
What did you expect to happen?
null
OneSignal Android SDK version
34
Android version
13
Specific Android models
No response
Relevant log output
Code of Conduct