Skip to content

Commit 088d7cc

Browse files
authored
Merge pull request #3934 from dpalou/MOBILE-4499
Mobile 4499
2 parents b38223b + 5cd20b8 commit 088d7cc

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/core/services/local-notifications.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,12 @@ export class CoreLocalNotificationsProvider {
315315
* @returns Promise resolved with the notifications.
316316
*/
317317
protected getAllScheduled(): Promise<ILocalNotification[]> {
318-
return this.queueRunner.run('allScheduled', () => LocalNotifications.getAllScheduled());
318+
return this.queueRunner.run('allScheduled', () => new Promise((resolve) => {
319+
// LocalNotifications.getAllScheduled is broken, use the Cordova plugin directly.
320+
const plugin = this.getCordovaPlugin();
321+
322+
plugin ? plugin.getScheduled(notifications => resolve(notifications)) : resolve([]);
323+
}));
319324
}
320325

321326
/**

src/theme/theme.base.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ ion-card {
940940
display: flex;
941941
flex-direction: row;
942942
justify-content: flex-end;
943-
@include margin(0, 8px, 8px, 8px);
943+
margin: 0 8px 8px 8px;
944944

945945
ion-button {
946946
text-transform: none;

0 commit comments

Comments
 (0)