Vue PWA + Firebase Push Notifications

接續上次講嘅 Vue PWA + Docker,今次係要加多少少功能,加個 Firebase Push Notifications,中文係咪叫「推送短訊」? 雖然今時今日嚟講係小功能,不過由於有 Windows、macOS、Android、同埋 iOS,仲有 Chrome、Edge Chromium 等等不同嘅 browser,都算幾麻煩㗎,我為咗減少工作量,淨係針對 Chrome 做測試,間唔中用埋 Edge Chromium 嚟証實有冇搞錯。

Continue reading “Vue PWA + Firebase Push Notifications”

Xamarin Push Notification (用 Firebase 經 APN 發至 iPhone)

蘋果一向都唔係咁歡迎人哋答順風車嘅,所以,要 send notification 俾 iPhone 就較為複雜:

  1. 首先,你要俾錢做 developer
  2. 去 Developer Console 整張 APN Cert(APN 係 Apple Push Notification)
  3. 留意,張 Cert 有分 Development 同 Production,兩張 Certs 唔互通
  4. 下載張 Cert
  5. 轉成 .p12 格式
  6. 上載到 Firebase Console

Continue reading “Xamarin Push Notification (用 Firebase 經 APN 發至 iPhone)”

Visual Studio for Mac 開唔倒 GoogleService-Info.plist

首先重複一次張圖:

哩張圖係另外一個網友上載嘅,我順手拎嚟,反正問題相同。:)

你估唔倒係咩問題?咪又係 Microsoft 嘅 Visual Studio for Mac 囉!

我用 Visual Studio Code 打開佢:

有幾段咁嘅 codes,完全冇錯嘅 syntax,不過,不過,如果你改成咁:

你就可以順利用 Visual Studio for Mac 打開個檔案!

死未!

KeyStore Explorer 自製 Certificate

事沿 Firebase Authentication 要我提供 SHA certificate fingerprints,之前我係用 Linux scripts,今次諗下不如搵隻 GUI 免費軟件試下,一來方便啲,二來可以集中處理我日積月累嘅 certificates,搵下搵下就選咗 KeyStore Explorer。KeyStore Explorer 有 Windows 同 OSX 版,對我來講(Mac同 PC 兩邊走)就非常方便。當然,你部機一定要安裝 JAVA。

Continue reading “KeyStore Explorer 自製 Certificate”

Firebase Cloud Messaging + VWG

Firebase Cloud MessagingWeb PushWeb APIService Worker 好多名詞,😂

Firebase Cloud Messaging (FCM) 前身係 Google Cloud Messaging (GCM),Google 買咗 Firebase 之後將 GCM 併入 Firebase 改名為 FCM,FCM 可以推送你嘅 notifications 去 iOS/Android devices 同埋 Web Browser。iOS 同 Android 收 notification 一啲都冇出奇,因為自從有 smart phone 就好似有 notification 哩樣嘢,我要玩嘅係:用 VWG (C#)喺 server 推送 notification 俾 desktop computers’ Web Browsers,好新鮮嘅技術,2015 年底先至有,目前好似淨係 Chrome 同 Firefox 有此功能,Safari 都未跟上。

Continue reading “Firebase Cloud Messaging + VWG”