-
Notifications
You must be signed in to change notification settings - Fork 38
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
Channel works OK on Android 8 but not 9 #7
Comments
Looks like you didn't install this fork correctly. Are you sure that your app uses my version in the release which produces this error? The error given is because there is no channel created for the notification. Uninstall the app from your phone, create a new release and install your app again. Let me know if this fixes your issue. |
I'll try again later today. I currently don't have a phone with Android 9, so I have to rely on the verification done by Google Play. |
I just saw that the config.xml info didn't show. Added to the initial report. |
Long after publishing I got a prelaunch report (I guess that's how Google Play works) and it still complains about Android 9, which might be because I use SDK for 27 or something else unrelated. Anyway, this is what I get again (I do set the channel): Google Pixel 2 (walleye) - Android 9 Exception |
@Steffaan Anything new regarding this? I'm also getting the
There's nothing more in the report but I'm pretty sure the error is related to the notification plugin. I've got a proper smallicon (some suggested the reason is lacking a correct notification icon in the resources). I suppose it is related to this issue so maybe you hacve some ideas you can shared to get rid because after updating my app my crashing stats increased 1000% in the play console and the quality factor is one of the factors used by google when position apps in the listings. |
@Steffaan I've downgraded to the version 0.9.0-beta.3 from Katzer and the exception is no longer reported in the Google Play for any Android version. I'm pretty sure it has something to do with the channel code added in the following versions. |
When submitting an app to Google Play I get a complaint about invalid channel for Android 9, but not for 8.
Your Environment
cordova -v
): cli-8.0.0cordova platform ls
): 7.0.0Expected Behavior
It should work also for Android 9, but...
Actual Behavior
I get this exception by Play's platform verification:
Exception
android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification(channel=null pri=-2 contentView=null vibrate=null sound=null defaults=0x0 flags=0x42 color=0x00000000 vis=PRIVATE)
Steps to Reproduce
config.xml:
Use:
Debug logs
No access to that (as far as I know) as the verification was done at Google Play.
The text was updated successfully, but these errors were encountered: