Escolar Documentos
Profissional Documentos
Cultura Documentos
Bibliotecas
Instalar a API do capacitor, usando os seguintes os comandos:
@Component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
})
notificationDelay:string="";
constructor() {}
ngOnInit() {}
agendar(){
const options:LocalNotificationSchema={
id: 132456,
summaryText: "Resumo",
})
}
/******* Já o arquivo home.page.html *******/
<ion-header [translucent]="true">
<ion-toolbar color="success">
<ion-title>
LocalNotification
</ion-title>
</ion-toolbar>
</ion-header>
<ion-content [fullscreen]="true">
<h1>Notificação</h1>
<ion-button (click)="agendar()">Agendar</ion-button>
</ion-content>
/******* Após a codificação acima deve-se entrar com os comandos *******/
1- ionic build