Pergunta

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!

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top