Closed ss-andrii closed 2 years ago
Howdy, Please note you have to implement the Extender Service in native code.
Hope that helps.
Yes, Extender Service is implemented in native code. When I replace in manifest
android:permission="android.permission.BIND_JOB_SERVICE"
on
android:permission="false"
app is start successful, but when I send push notification it's crashed with:
'Unable to start receiver com.onesignal.GcmBroadcastReceiver: java.lang.IllegalArgumentException: Scheduled service ComponentInfo{<package_name>/<package_name>.OneSignalExtenderService} does not require android.permission.BIND_JOB_SERVICE permission'
@AndriiSvitSoft It looks like you have this correct. Based on the error you got the entry matches what has fixed it for others. https://github.com/OneSignal/OneSignal-Android-SDK/issues/351#issuecomment-340552046
Could you share you full AndroidManifest.xml
? As well as which Android versions you have tested this on?
Closing due to inactivity.
Description: I need to silent notifications. I am following the docs: https://documentation.onesignal.com/docs/service-extensions#notification-extender-service
I am trying to do a very basic implementation just to test it. So in the service where I extend the NotificationExtenderService I just return true.
The app builds fine but on start it crashes every time
Environment OneSignal Xamarin SDK 3.10.1
Steps to Reproduce Issue:
Error in console: