e-mission / e-mission-phone-native

Android and iOS phone apps for the e-mission-project
https://e-mission.eecs.berkeley.edu
BSD 3-Clause "New" or "Revised" License
1 stars 14 forks source link

background_fetch is not reliably invoked on iOS 7 #15

Open shankari opened 9 years ago

shankari commented 9 years ago

It is not clear how to address this since if we are not invoked, we can't do much. Explore remote notifications? Or at least, launch a sync when the app is launched?

shankari commented 9 years ago

I am hoping that switching to our own data collection will help with this, since we will be invoked in the background anyway when people take trips, and then we can piggyback on that to send data back and forth. However, it seems like knowing how to make remote notifications work is a good thing in general, as a backup/failure mechanism - for example, if we don't get any data for several days.

@neerajbaid said that there are third party integration services that make this easier with two lines of code, which is why this is a small task.

The goal here would then be:

neerajbaid commented 9 years ago

I would recommend something like Parse Push. It's free until 1 million users. On the client side, you simply register a user's device with their user_id. Then, you can send them a direct push any time from anywhere.

shankari commented 9 years ago

Cool! It looks like using Parse Push might help solve #16 as well, specially if they support a wide range of android versions. If one team would like to take on both, I would count it as a "medium" issue...

shankari commented 9 years ago

Also, if you want to get a sense of the problem: http://www.shankari.org/2014/09/ios-background-sync.html