Socket
Socket
Sign inDemoInstall

cordova-plugin-rebase-notification

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cordova-plugin-rebase-notification

Creates and schedule local notifications.


Version published
Maintainers
1
Created

Readme

Source

Rebase Cordova Plugin Notification

Este plugin do cordova para Ionic foi criado especialmente para suprir a necessidade de exibir notificações através do Ionic, uma vez que o único plugin disponível para cordova (cordova-plugin-local-notification) não funciona corretamente em muitos casos de uso.

Para utilizá-lo você precisa de um projeto Ionic e utilizar o comando descrito na seção abaixo.

Instalação

ionic cordova plugin add cordova-plugin-rebase-notification
npm install @rebase-team/notification

Exemplos de uso

> APPMODULE.TS

import { AppComponent } from "./app.component";
import { NgModule } from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { IonicModule } from "@ionic/angular";
import { NotificationService } from "@rebase-team/notification";

@NgModule({
  declarations: [],
  imports: [
    BrowserModule,
    IonicModule.forRoot()
  ],
  providers: [
    NotificationService
  ],
  bootstrap: [AppComponent],
  exports: []
})
export class AppModule { }

> HOME.PAGE.TS

import { NotificationService } from "@rebase-team/notification";

@Component({
  selector: "app-home",
  templateUrl: "home.page.html",
  styleUrls: ["home.page.scss"],
})
export class HomePage implements OnInit {

  constructor(
    private notification: NotificationService
  ) {
    //Cria uma notificação instantaneamente.
    this.notification.show(123, "channelId", "Title", "Text body", "icon/favicon.png");
  }

}

Metadados

Muryllo Pimenta de Oliveira – muryllo.pimenta@upe.br

Distribuído sobre a licença MIT. Veja LICENSE para mais informações.

Contribuição

  1. Fork it (https://github.com/MurylloEx/cordova-plugin-rebase-notification/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

Keywords

FAQs

Last updated on 25 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc