xml - What is the best way to keep a list of products updated from a server?(IOS) -
i want maintain list of products updated in ios.what thought of maintain list in xml file , check version of xml on device version of xml on server , if it's not latest version download latest version not convenient way.and should utilize socket programming or there improve option?i have tried socket programming before i'm familiar that.
approach 1, save current version using core data fast retrieve , define restful interface on server client inquire what's newest lite weight. , when view controller life cycle event happens, inquire server if there update. never write infinite loop maintain sending request server.
approach 2, may utilize push notifications notification there update available, more powerfulness saving on client side it's more complicated set up.
ios xml sockets
No comments:
Post a Comment