MOBILE-4215 android: Request notification permission on start

main
Dani Palou 2023-04-20 15:15:29 +02:00
parent 9a72ca307a
commit 781a950853
1 changed files with 2 additions and 3 deletions

View File

@ -71,9 +71,8 @@ export class CoreLocalNotificationsProvider {
async initialize(): Promise<void> {
await CorePlatform.ready();
if (!this.isAvailable()) {
return;
}
// Request permission when the app starts.
LocalNotifications.requestPermission();
// Listen to events.
this.triggerSubscription = LocalNotifications.on('trigger').subscribe((notification: ILocalNotification) => {