cordova-plugin-bubbles

0.2.7 • Public • Published

cordova-plugin-bubbles

Cordova plugin for bubbles notifications work with Sdk => 21

Image of bubbles

how to use

Import............
 
declare const bubblesPlugin:any;
 
@Component({
    selector: '.......',
    templateUrl: '.......',
    styleUrls: ['.......']
})
export class ....... 

integration

 
let bubblesOptions = {
    badge: 0, // badge number 
    widget_label: '...',
    widget_details: '...',
    type: 'bubble/incomingCall'
};
 
// CREATE THE BUBBLES
bubblesPlugin.createFloatingBubbles(bubblesOptions,(data) => {
            console.log("FloatingBubbles : ", data);
        }, (err) => {  
            console.log("Error : ", err);
});
 
 
// REMOVE THE BUBBLES
bubblesPlugin.removeFloatingBubbles( (data) => {
 
            console.log("FloatingBubbles : ", data);
        }, (err) => {  
            console.log("Error : ", err);
});
 

Rq

MinSdk :21
Android only
you must add mipmap/ic_launcher_round in your project

how to build for ionic

ionic cordova plugin add cordova-plugin-bubbles
 
ionic cordova build android

Package Sidebar

Install

npm i cordova-plugin-bubbles

Weekly Downloads

19

Version

0.2.7

License

ISC

Unpacked Size

64.1 kB

Total Files

26

Last publish

Collaborators

  • zghal