Is replicating view and list functions to native iOS app allowed/recommended?

18 views
Skip to first unread message

Adam Kovacs

unread,
Aug 20, 2015, 11:25:54 AM8/20/15
to Couchbase Mobile
Hello, 

we're developing an application with CouchDB, PouchDB and Couchbase Lite. 

Some of our application logic is in view and list functions and we managed to replicate it to PouchDB just fine. 

My question is, is it a good idea to do this with native mobile applications, or are we better off rewriting them in ObjC?

Our primary concerns are getting rejected by the Apple review process and of course performance. 

Thanks in advance,

Adam

Jens Alfke

unread,
Aug 20, 2015, 11:58:47 AM8/20/15
to Couchbase Mobile
Well, Couchbase Lite’s REST API doesn’t support list or show functions, so if you keep your app logic in JS (using PhoneGap / Cordova) you’d need to re-implement the part that uses those.

Apple has no problem with apps that use PhoneGap + Couchbase Lite. The only thing that would cause trouble is if your app pulls design documents from a remote database, because the JavaScript functions in those would count as downloading executable code, which is forbidden.

—Jens
Reply all
Reply to author
Forward
0 new messages