EddyVerbruggen / nativescript-local-notifications

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

"notRequests" is null not an object on xcode 11 ios 13 #167

Closed mohdaliali7777 closed 4 years ago

mohdaliali7777 commented 4 years ago

ON xcode 11 the variable notRequests is null when there are no scheduled notifications, this causes the app to terminate when it reaches for (let i = 0; i < notRequests.count; i++) { line 343 on local-notifications.ios.js Adding this code solved it for me

                        if (notRequests) {
                            for (var i = 0; i < notRequests.count; i++) {
                                scheduledIds_1.push(notRequests[i].identifier);
                            }
                        }
EddyVerbruggen commented 4 years ago

Thanks!