MOBILE-4499 local-notifications: Fix cancelling site events
parent
edd6214e71
commit
5cd20b8710
|
@ -315,7 +315,12 @@ export class CoreLocalNotificationsProvider {
|
||||||
* @returns Promise resolved with the notifications.
|
* @returns Promise resolved with the notifications.
|
||||||
*/
|
*/
|
||||||
protected getAllScheduled(): Promise<ILocalNotification[]> {
|
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([]);
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -940,7 +940,7 @@ ion-card {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
@include margin(0, 8px, 8px, 8px);
|
margin: 0 8px 8px 8px;
|
||||||
|
|
||||||
ion-button {
|
ion-button {
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
|
|
Loading…
Reference in New Issue