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.
Installation
- Capacitor
- Cordova
- Enterprise
$ npm install vibes-cordova
$ npm install @awesome-cordova-plugins/vibes
$ ionic cap sync
$ ionic cordova plugin add vibes-cordova
$ npm install @awesome-cordova-plugins/vibes
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
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));