Campus-iOS icon indicating copy to clipboard operation
Campus-iOS copied to clipboard

Alarm / notification system

Open kordianbruck opened this issue 10 years ago • 11 comments

It would be great to have GCM on the iOS app as well in order to be able to support the Alarm feature on both platforms and maybe get better backing from the TUM through this.

The GCM message format is listed here: https://github.com/TCA-Team/TumCampusApp/wiki/GCM-Message-format

The GCM message does not contain all the information needed as that would probably exceed the size limit of the GCM payload. In order to fetch the full message please check the API client in the Android version.

screenshot_2015-11-05-18-20-03 screenshot_2015-11-05-18-14-23

kordianbruck avatar Feb 04 '16 19:02 kordianbruck

GCM on iOS can probably be implemented via https://developers.google.com/cloud-messaging/ios/client?ver=swift

pfent avatar Feb 04 '16 19:02 pfent

Thanks! I will start working on this right after the exams. I'm still kind of fussy on the architecture of this thing and what role the TumCabe Backend plays in this and what is handled by Google. I soon as I've read all of this, who should I go to for questions? @kordianbruck ?

nerdsupremacist avatar Feb 04 '16 19:02 nerdsupremacist

The TumCabe backend holds the full information on the notification (e.g.: description text for the alarm). GCM is only there to initiate the connection and let the client know that there is new information to fetch. This saves battery power, as we do not have to deal with setup a long lived socket and MQTT ourselfs (Message queue).

Yea, ask me any time - I can give you all infos ;)

kordianbruck avatar Feb 04 '16 19:02 kordianbruck

Depends on https://github.com/TCA-Team/backend/issues/2

TCA-Team/backend/issues/2 backend/issues/2 (Hm, the second both links get changed (the # is added), but it's not mentioned at the backend issue)

mammuth avatar May 26 '17 10:05 mammuth

The issue referenced above, is already done. It was about migrating to Firebase, which we have completed. Anyone willing to implement this, please contact me, in order to get the proper certificates for the GCM push messages.

kordianbruck avatar Feb 22 '18 15:02 kordianbruck

@kordianbruck Have you set this up?

tgymnich avatar Feb 22 '18 15:02 tgymnich

yes, I think @mammuth worked on this already and pretty much finish it.

kordianbruck avatar Feb 22 '18 15:02 kordianbruck

The preliminary feature needs to be implemented for 1.3.1. Will only support the Alarm Payload and add chat later. Updates should be handled differently I guess since the payload appears to be only available for Android and the App Store Updates are pretty fast due to autoupdate

nerdsupremacist avatar Feb 25 '18 20:02 nerdsupremacist

@mammuth can you please push anything you have on this? @TG908 do you wanna take this one, or should I? I don't know how you're doing on time

nerdsupremacist avatar Feb 25 '18 21:02 nerdsupremacist

Feel free to take this one. I’m still I’m my exam phase.

tgymnich avatar Feb 26 '18 00:02 tgymnich

Same :disappointed:

@mathiasquintero I once checked out firebase and started creating the needed certs and profiles and tinkered around with some code snippets in the app but there is nothing that could be pushed I think.

mammuth avatar Feb 26 '18 09:02 mammuth

Will be handled in https://github.com/TUM-Dev/Campus-iOS/issues/360

augustwstein avatar Sep 15 '22 19:09 augustwstein