CopyPastor

Detecting plagiarism made easy.

Score: 0.8973208991285602; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2020-10-04
by Md omer arafat

Original Post

Original - Posted on 2018-11-24
by Yassine Zeriouh



            
Present in both answers; Present only in the new answer; Present only in the old answer;

So I found the solution to this one by myself. It's an error in the typings file of LocalNotifications package.
The correct usage for the options look like this: ``` { id: 1, title: 'Notification Title', text: 'Your notification text', foreground: true, trigger: { every: { hour: 8, minute: 15 } } } ``` Just go into your node_modules/@ionic-native/local-notifications find the index.d.ts and find the line which says every?: ELocalNotificationTriggerUnit and change it to every?: any; now it should work perfectly.
So I found the solution to this one by myself. It's an error in the typings file of LocalNotifications package.
The correct usage for the options look like this:
{ id: 1, title: 'Notification Title', text: 'Your notification text', foreground: true, trigger: { every: { hour: 8, minute: 15 } } }
Just go into your `node_modules/@ionic-native/local-notifications` find the index.d.ts and find the line which says `every?: ELocalNotificationTriggerUnit` and change it to `every?: any;` now it should work perfectly.

        
Present in both answers; Present only in the new answer; Present only in the old answer;