ncmb-expo-push

1.0.0 • Public • Published

Expo用React Native向けプッシュ通知プラグイン

使い方

const ncmbPush = new NCMBPushNotification('YOUR_APPLICATION_KEY', 'YOUR_CLIENT_KEY');
try {
  await ncmbPush.setDeviceToken();
} catch (e) {
  console.log(e);
}

この処理で、プッシュ通知許可用のダイアログ表示、デバイストークンの取得、デバイストークンのNCMBへの保存処理を行います。

デバイストークンの取得

const installation = await ncmbPush.getInstallation();

取得したinstallationオブジェクトに新しいメタデータを紐付けられます。

ライセンス

MIT License

Readme

Keywords

none

Package Sidebar

Install

npm i ncmb-expo-push

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

17.8 kB

Total Files

6

Last publish

Collaborators

  • moongift