Плагин nativescript-custom-local-notifications дает: Не удается прочитать свойство \ 'Builder \' с неопределенной ошибкой - PullRequest
0 голосов
/ 30 октября 2019

Плагин nativescript-custom-local-no * у меня не работает (но nativescript-local-notifications работает),

Вот код:

import * as LocalNotifications from "nativescript-custom-local-notifications";

export default {
  methods: {
    onTapScheduleNotification () {
      LocalNotifications.schedule([{
        id: 1,
        title: 'The first title',
        body: 'The first  body',
        ticker: 'The ticker',
        badge: 1,
        sound: "sound1", //sound1 from /Appresources/raw/ folder
        at: new Date(new Date().getTime() + (20 * 1000)) 
      }])
    }
  }
}

результат:

JS: 'Error in LocalNotifications.schedule: TypeError: Cannot read property \'Builder\' of undefined'
JS: 'scheduling error: TypeError: Cannot read property \'Builder\' of undefined'

Я пробовал это:

tns platform remove android && tns run android

, но проблема все еще сохраняется.

...