سؤال

Does anyone know if it is possible to delete all user checkins within certain timeframe using QB iOS SDK?

There is a "mass delete" option available, but I do not want to delete all checkins including today's checkin but instead within certain time period in my app.

http://quickblox.com/developers/SimpleSample-location_users-ios#Mass_delete

I know I could first mass delete all and then re-submit today's checkins (yes, may be more than one) but that would not be very efficient IMHO.

Any suggestions and comments appreciated!

هل كانت مفيدة؟

المحلول

Yes, you can do it

QBLGeoDataDeleteRequest *deleteRequest = [[QBLGeoDataDeleteRequest alloc] init];
deleteRequest.days = 5;

[QBLocation deleteGeoDataWithRequest:deleteRequest delegate:self];

days - Maximum age of data that should remain in the database after a query.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top