Skip to main content
Version: v5

Vibes

This plugin enables integration with the Vibes Push SDK to your Cordova project with Android and iOS supported.

https://github.com/vibes/vibes-cordova.git

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Installation

$ npm install vibes-cordova 
$ npm install @awesome-cordova-plugins/vibes
$ ionic cap sync

Supported Platforms

  • Android
  • iOS

Usage

React

Learn more about using Ionic Native components in React

Angular

import { Vibes } from '@awesome-cordova-plugins/vibes/ngx';


constructor(private vibes: Vibes) { }

...


this.vibes.registerDevice()
.then((res: any) => console.log(`device registration success: ${res}`)) // retrieve and save the device_id from `res` JSON object
.catch((error: any) => console.error('Error registering device', error));

this.vibes.registerPush()
.then((res: any) => console.log(res))
.catch((error: any) => console.error('Error registering push', error));

this.vibes.getVibesDeviceInfo()
.then((res: any) => console.log(res)) // retrieve the `device_id` and `push_token` from the JSON object
.catch((error: any) => console.error('Error retrieving deviceinfo', error));

this.vibes.fetchInboxMessages()
.then((res: any) => console.log(res)) // fetches inbox messages for this person.
.catch((error: any) => console.error('Error fetching inbox messages for this person', error));