cordova-plugin-bubbles
v0.2.7
Published
cordova plugin bubbles api
Downloads
6
Maintainers
Readme
cordova-plugin-bubbles
Cordova plugin for bubbles notifications work with Sdk => 21
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