Vibes
This plugin enables integration with the Vibes Push SDK to your Cordova project with Android and iOS supported.
Cordovaの問題で困っていますか?
本格的なプロジェクトを構築している場合、トラブルシューティングに時間を費やす余裕はありません。Ionicのエキスパートが、保守、サポート、統合に関する公式サポートを提供しています。
インストール
Ionic Native Enterprise はIonic Teamが完全にサポートしメンテナンスしているプラグインを利用できます。 詳しくみる か、エンタープライズプラグインに興味があれば 連絡ください
サポートしているプラットフォーム
- Android
- iOS
利用方法
React
Angular
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', 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));

