spinks / LioninWinterBall

App for the Hatfield Lion in Winter Ball and Hatfield Summer Solstice Ball
MIT License
0 stars 0 forks source link

Firebase Cloud Messaging for Notifications #4

Open spinks opened 4 years ago

spinks commented 4 years ago

Need to be able to send push notifications.

Some basic working code for iOS was added in commit e4b299e39694b11aa8509c603f15db16466005c3, but this is device specific.

For iOS implementation the APN key is needed (Firebase APNs). This has to be gotten from the apple developer account.

spinks commented 4 years ago

Won't be implemented for LiWB

In future need to ask about creating a certificate but should be feasible.

spinks commented 4 years ago

This can be done, with certificate permissions on the Apple developer account. The android process is simpler. Some template code for both to be inserted at the ionic level, a JSON file for android, some initialisation code needed for iOS.

See: https://capacitor.ionicframework.com/docs/guides/push-notifications-firebase/

To be implemented for future balls and events.