Skip to content

illegalArgumentException: defaultNotificationChannel #284

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

Closed
LaKing opened this issue Nov 15, 2022 · 2 comments
Closed

illegalArgumentException: defaultNotificationChannel #284

LaKing opened this issue Nov 15, 2022 · 2 comments

Comments

@LaKing
Copy link

LaKing commented Nov 15, 2022

illegalArgumentException: You have to set defaultNotificationChannel in your Application subclass

Android, physical device.

This used to work, but got this error after updating everything to the latest version.

Didn't find to where to set this yet.

@LaKing
Copy link
Author

LaKing commented Nov 15, 2022

Setting androidNotificationChannelID: "miscellaneous"

.. gave me this NativeScript/plugins#318

@LaKing
Copy link
Author

LaKing commented Nov 15, 2022

Okay, got it. This is new:

import { init } from '@nativescript/background-http';
init();

After adding that, it's all fine.

@LaKing LaKing closed this as completed Nov 15, 2022
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

1 participant