Merge pull request #3934 from dpalou/MOBILE-4499

Mobile 4499
main
Pau Ferrer Ocaña 2024-02-22 09:49:26 +01:00 committed by GitHub
commit 088d7ccc55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -315,7 +315,12 @@ export class CoreLocalNotificationsProvider {
* @returns Promise resolved with the notifications.
*/
protected getAllScheduled(): Promise<ILocalNotification[]> {
return this.queueRunner.run('allScheduled', () => LocalNotifications.getAllScheduled());
return this.queueRunner.run('allScheduled', () => new Promise((resolve) => {
// LocalNotifications.getAllScheduled is broken, use the Cordova plugin directly.
const plugin = this.getCordovaPlugin();
plugin ? plugin.getScheduled(notifications => resolve(notifications)) : resolve([]);
}));
}
/**

View File

@ -940,7 +940,7 @@ ion-card {
display: flex;
flex-direction: row;
justify-content: flex-end;
@include margin(0, 8px, 8px, 8px);
margin: 0 8px 8px 8px;
ion-button {
text-transform: none;