Couldn't ask for a better reply, and i completely agree with that it's a bit of a hassle to "only" reinvent the wheel all the time. Maybe you should go all CloudKit on this one ;)
Den måndagen den 9:e juni 2014 kl. 17:33:55 UTC+2 skrev Jeff Kingyens: > > I don't think this is a good idea. First of all, you would be missing > certain functionality. For instance, you can use APN to send a real-time > event to your application regardless of the application's state. Even if > your application is completely shut down, Apple will invoke your > application if the platform receives an APN event with your bundle ID. I am > not sure how you would replicate this behavior using the sync gateway + > local notifications. You would be at the mercy of background fetches, which > you have no control over and might never come (there is no way to set a > maximum interval between background fetches). So in this case, how would > you have better control? Or even better performance for that matter? APN is > designed for performance (battery life) and is in a better position to make > decisions to optimize for this because it has a complete view of the user's > iOS device and all application requirements. > > It seems the right way to do this is to actually use APN to send the > signal to an iOS device that a sync is required and then call the couchbase > replication methods. You could then add application level logic on top to > figure out what changed (or provide this information in a document). I do > agree that some extra work is required to set this up and it would be nice > if it was some how integrated into the sync gateway. In my case, I already > have a server-side solution doing custom authorization (I allow google > accounts, facebook, github and a bunch more), so adding additional > functionality to understand the user's devices and perform APN pushes is > not that big of a deal. However, it would be cool if a user's device tokens > were an extension of the sync gateway user model, and you could upload APN > SLL certificates and configuration and have the gateway send push > notifications to the device. > > Jeff > > On Monday, June 9, 2014 3:12:27 AM UTC-7, CouchbaseLover wrote: >> >> "Apple Push Notification Service with UILocalNotfication + Sync Gateway >> instead" >> >> What do you think about this idea? We thought about this and we can't >> come up with why it wouldn't work and could actually be a lot better, >> better performance and better control (not having to manage another server >> solution etc). >> >> Would be interest in "J.Chris" solution to "APNS" and haven't found any >> link (searched on the forum and github). Maybe it's similar to what we >> thought about? :) >> >> Regards CouchbaseLover >> >> >> >> >> -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/6b82c578-8f83-4323-9c98-a173b2d6cad5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
