NativeScript / nativescript-background-http

Background Upload plugin for the NativeScript framework
Apache License 2.0
102 stars 50 forks source link

illegalArgumentException: defaultNotificationChannel #284

Closed LaKing closed 2 years ago

LaKing commented 2 years ago

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 commented 2 years ago

Setting androidNotificationChannelID: "miscellaneous"

.. gave me this https://github.com/NativeScript/plugins/issues/318

LaKing commented 2 years ago

Okay, got it. This is new:

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

After adding that, it's all fine.