Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Mobile

Auto restart flag

1 reply [Last post]
  • Login or register to post comments
Tue, 10/04/2011 - 03:07
Jax
Offline
Joined: 08/08/2011
Groups: None

Hi guys,

When will the 'auto-restart' flag be available for iOS, and how will it be implemented? Is it a property of the CouchbaseMobile object, or somewhere else in the 'ini' files?

Regards,

Mark

Top
  • Login or register to post comments
Tue, 10/04/2011 - 09:25
jens
Offline
Joined: 10/04/2011
Groups: None

(It looks like you also asked the question on the mobile-couchbase Google group, but I'll add the answer here for the benefit of posterity)

It's been in the nighties for a while; http://files.couchbase.com/developer-previews/mobile/ios/nightlybuild/

It's a property:

/** Defaults to YES, set to NO to prevent auto-restart behavior when app returns from background */
@property (assign) BOOL autoRestart;

We also provide a method to manually trigger the restart if you've set it to NO:

/** Restart the server, necessary if app being suspended closes its listening socket */
- (void) restart;

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker