EddyVerbruggen / nativescript-local-notifications

:mailbox: NativeScript plugin to easily schedule local notifications
MIT License
162 stars 57 forks source link

NativeScript encountered a fatal error: Uncaught TypeError: Class constructor Observable cannot be invoked without 'new' #210

Open faisalansari20 opened 3 years ago

faisalansari20 commented 3 years ago

I have install this library in nativescript using angular flavour and I am facing below error only on IOS.

Fatal JavaScript exception - application has been terminated. NativeScript encountered a fatal error: Uncaught TypeError: Class constructor Observable cannot be invoked without 'new' at SharedNotificationDelegateCommon(file: node_modules/nativescript-shared-notification-delegate/shared-notification-delegate.common.js:7:0) at SharedNotificationDelegateImpl(file: node_modules/nativescript-shared-notification-delegate/shared-notification-delegate.ios.js:23:0) at ../node_modules/nativescript-shared-notification-delegate/shared-notification-delegate.js(file: node_modules/nativescript-shared-notification-delegate/shared-notification-delegate.ios.js:181:0) at webpack_require(file: src/webpack/bootstrap:816:0) at fn(file: src/webpack/bootstrap:120:0) at ../node_modules/nativescript-local-notifications/local-notifications.js(file: node_modules/nativescript-local-notifications/local-notifications.ios.js:3:50) at webpack_require(file: src/webpack/bootstrap:816:0) at fn(file: src/webpack/bootstrap:120:0) at ./app/core/services/pushnotification.service.ts(file: src/app/core/services/pushnotification.service.ts:1:0) at webpack_require(file: src/webpack/bootstrap:816:0) at fn(file: src/webpack/bootstrap:120:0) at ./app/app.component.ts(file: src/app/app.component.ts:1:0) at webpack_require(file: src/webpack/bootstrap:816:0) at fn(file: src/webpack/bootstrap:120:0) at .<…>`

timobech commented 2 years ago

i face the same issue, do we have some updates on it ?

insytes commented 1 year ago

@faisalansari20 @timobech I recommend you switching to the @nativescript/local-notifications package as outlined in the project readme.