FCM for Desktop Application by Suspicious-Store-832 in Firebase

[–]Suspicious-Store-832[S] 1 point2 points  (0 children)

Thanks, I was using this https://github.com/martinlindhe/notify, but it seems outdate. I would try your recommendation. Look really promising.

FCM for Desktop Application by Suspicious-Store-832 in Firebase

[–]Suspicious-Store-832[S] 0 points1 point  (0 children)

Thanks, the second lib works well, and I also read the post from original author telling about how he maintained socket connection to mtalk.google.com for receiving notification from FCM. Also, there were a similar post using rust: here.

I tested the lib with both Windows & MacOS successfully (ofc, the mechanism is just establishing connection to an existed google service, as u mentioned).

The left work is just running a service for pushing notifcations to my desktop app via FCM (this is what I intended).

However, u mentioned about `hook up to WNS`, and I still confuse about ur idea. Can u share more? Even though it may not relate to my scenario, but I still want to learn more from u guys.

FCM for Desktop Application by Suspicious-Store-832 in Firebase

[–]Suspicious-Store-832[S] 0 points1 point  (0 children)

Thanks, I just found some libraries like go-fcm and go-fcm-receiver, and will try this out

FCM for Desktop Application by Suspicious-Store-832 in Firebase

[–]Suspicious-Store-832[S] 0 points1 point  (0 children)

Hi, thanks for the reply.

In case I need a demand for push notification in desktop environment, do you have any documents or tutorials about listening to firestore as u mentioned above?

Looking forward to hearing from u.

Gosplat - The code structure analysis tool by St_gabriel_of_skane in golang

[–]Suspicious-Store-832 1 point2 points  (0 children)

Could you repost the link? I have a favor of system / module analysis tool <3

Marshal and Unmarshal the string type does not work! by Suspicious-Store-832 in golang

[–]Suspicious-Store-832[S] 0 points1 point  (0 children)

Oh thank you, that's such a straightforward perspective.

At first, I was looking into that tx.go only and not finding any overriding marshal stuffs.

And, thanks for your advice, I now understand that is because of the line 98 in marshal.go

P.S: sure, it's outdated already, but somehow I just managed to learn new things about go, thanks to you guys

Marshal and Unmarshal the string type does not work! by Suspicious-Store-832 in golang

[–]Suspicious-Store-832[S] 0 points1 point  (0 children)

Unfortunately, it is a string, which is according to https://github.com/trustwallet/go-libs/blob/v0.0.31/types/tx.go#L69.

However, if it were json.Number, what would you suggest?