Web Push通知の受信を、Firebase Cloud Messaging(FCM)+Service Worker +Notificationで受信側でコントロールしてみた
Web Push通知の受信を、Firebase Cloud Messaging(FCM)+Service Worker +Notificationで受信側でコントロールしてみた
はじめに 前回の記事から随分経ってしまいましたが、今回はユーザ登録を実装してみます。 ログイン機能は前回実装した、Google Authorization機能を用いますが、一般に公開されるユーザ名を追加で設定できるようにします! この記事の内容で、FirebaseDB(と呼びます)への書き込みが理解できました。 成果物はこちらになります。 https://github.com/tamalign/CheekyCat/tree/day3 設計と実装 どのようにユーザ管理をするかを考えます。 (あまりWebに詳しくないので間違っていることがあるかもしれませんがご容赦ください。) 今回はユーザの一意のIDをKeyとして、必要な情報をValueに保存するテーブルで管理を行いたいと思います。 FirebaseDBでは以下のようにしてuidを取得できます。参考ページ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く