hackthenorth-android icon indicating copy to clipboard operation
hackthenorth-android copied to clipboard

Notifications

Open srcreigh opened this issue 11 years ago • 10 comments

branched from issue #1 with @KartikTalwar

Notifications are important and I haven't worked with them before. Does anyone have experience with them or does research need to be done?

thoughts:

  • Not sure if notifications would be coupled with Firebase at all
  • I'm not sure if we'll need some kind of simple backend server or something

srcreigh avatar May 03 '14 17:05 srcreigh

I've done notifications too many goddamn times.

We'll use GCM. Its straightforward enough.

If not we can do simple polling, but that removes our ability to issue notifications whenever we want.

VicV avatar May 05 '14 18:05 VicV

I looked at GCM last night. It seems straightforward enough. 

If we're just pushing notifications to the phone, I was thinking we can just use some kind of script to make those requests and update firebase. We'll have to make sure this is possible for iOS notifications as well, though.

-------- Original message -------- From: Victor Vucicevich [email protected] Date:05/05/2014 2:33 PM (GMT-05:00) To: hackthenorth/hackthenorth-android [email protected] Cc: Shane Creighton-Young [email protected] Subject: Re: [hackthenorth-android] Notifications (#4)

I've done notifications too many goddamn times.

We'll use GCM. Its straightforward enough.

If not we can do simple polling, but that removes our ability to issue notifications whenever we want.

— Reply to this email directly or view it on GitHub.

srcreigh avatar May 05 '14 18:05 srcreigh

It is, its just a bit different.

But yeah thats exactly how GCM works. GCM doesn't only push notifications though, we just push information. So all we have to do is have a case where if we get an "update" command, we just update. Very straightforward.

On Mon, May 5, 2014 at 11:51 AM, Shane Creighton-Young < [email protected]> wrote:

I looked at GCM last night. It seems straightforward enough.

If we're just pushing notifications to the phone, I was thinking we can just use some kind of script to make those requests and update firebase. We'll have to make sure this is possible for iOS notifications as well, though.

-------- Original message -------- From: Victor Vucicevich [email protected] Date:05/05/2014 2:33 PM (GMT-05:00) To: hackthenorth/hackthenorth-android < [email protected]> Cc: Shane Creighton-Young [email protected] Subject: Re: [hackthenorth-android] Notifications (#4)

I've done notifications too many goddamn times.

We'll use GCM. Its straightforward enough.

If not we can do simple polling, but that removes our ability to issue notifications whenever we want.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/hackthenorth/hackthenorth-android/issues/4#issuecomment-42223398 .

VicV avatar May 05 '14 18:05 VicV

Cool. Sounds easy enough.

-------- Original message -------- From: Victor Vucicevich [email protected] Date:05/05/2014 2:53 PM (GMT-05:00) To: hackthenorth/hackthenorth-android [email protected] Cc: Shane Creighton-Young [email protected] Subject: Re: [hackthenorth-android] Notifications (#4)

It is, its just a bit different.

But yeah thats exactly how GCM works. GCM doesn't only push notifications though, we just push information. So all we have to do is have a case where if we get an "update" command, we just update. Very straightforward.

On Mon, May 5, 2014 at 11:51 AM, Shane Creighton-Young < [email protected]> wrote:

I looked at GCM last night. It seems straightforward enough.

If we're just pushing notifications to the phone, I was thinking we can just use some kind of script to make those requests and update firebase. We'll have to make sure this is possible for iOS notifications as well, though.

-------- Original message -------- From: Victor Vucicevich [email protected] Date:05/05/2014 2:33 PM (GMT-05:00) To: hackthenorth/hackthenorth-android < [email protected]> Cc: Shane Creighton-Young [email protected] Subject: Re: [hackthenorth-android] Notifications (#4)

I've done notifications too many goddamn times.

We'll use GCM. Its straightforward enough.

If not we can do simple polling, but that removes our ability to issue notifications whenever we want.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/hackthenorth/hackthenorth-android/issues/4#issuecomment-42223398 .

— Reply to this email directly or view it on GitHub.

srcreigh avatar May 05 '14 19:05 srcreigh

Hey @VicV, I was thinking about this more last night:

  • We can use Firebase to keep track of all the device IDs that we need to send notifications to.
  • We can write an update script (in python or whatever) that does a few things:
    1. Takes input from the user
    2. Makes a push/post to Firebase
    3. Reads all the device IDs from Firebase
    4. Makes the GCM HTTP requests (in the future iOS too)

LMK what you think of this design.

srcreigh avatar Jul 03 '14 17:07 srcreigh

side note: how long does it take for an app to be published to both stores?

KartikTalwar avatar Jul 03 '14 18:07 KartikTalwar

On iOS to be safe we should allocate two weeks, although it usually doesnt take more than a week and sometimes takes like a day. So... we should start very soon.

For Android, the turnaround time is a few hours.

srcreigh avatar Jul 03 '14 18:07 srcreigh

cool, lets have things ship out by end of August then

On Thu, Jul 3, 2014 at 11:15 AM, Shane Creighton-Young < [email protected]> wrote:

On iOS to be safe we should allocate two weeks, although it usually doesnt take more than a week and sometimes takes like a day. So... we should start very soon.

For Android, the turnaround time is a few hours.

— Reply to this email directly or view it on GitHub https://github.com/hackthenorth/hackthenorth-android/issues/4#issuecomment-47965502 .

KartikTalwar avatar Jul 03 '14 18:07 KartikTalwar

http://appreviewtimes.com

sitefeng avatar Aug 04 '14 21:08 sitefeng

not bad. let's have end of August as our deadline

KartikTalwar avatar Aug 04 '14 21:08 KartikTalwar