# cordova-plugin-bubbles
Cordova plugin for bubbles notifications work with Sdk => 21

![Image of bubbles](https://raw.githubusercontent.com/MedZghal/imges/master/Screenshot_bubbles.png)

## how to use

```typescript
Import............

declare const bubblesPlugin:any;

@Component({
    selector: '.......',
    templateUrl: '.......',
    styleUrls: ['.......']
})
export class ....... 
```
## integration

```typescript

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
```bash
MinSdk :21
Android only
you must add mipmap/ic_launcher_round in your project
```
## how to build for ionic

```bash
ionic cordova plugin add cordova-plugin-bubbles

ionic cordova build android
```
