Search docs/
Getting StartedPlugins

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?

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.

Contact Us Today!

Installation

ionic cordova plugin add vibes-cordovanpm install @ionic-native/vibesnpm install vibes-cordovanpm install @ionic-native/vibesionic cap sync
Ionic Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us

Supported Platforms

  • Android
  • iOS

Usage

Using React?

See here.

import { Vibes } from '@ionic-native/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 push', error));