I’m building a prototype of an iOS 8 app with Ionic that needs native code for 2 features:
- background upload of photos by dateTaken, could be a large number of photos
- a custom view of the Camera Roll that allows browsing of thumbnails by date
Can I achieve both these goals through Cordova Plugins? I’m scanning the docs for Cordova Plugins and a couple of red flags pop up
Plugin Initialization & Lifetime
Issue 1: I need to be able to set the background process (or a “notification”) to wake on a future date and check for photos taken on that day. Then it needs to be able to complete the upload process in the background. The
onReset method seems to run counter to this goal.
Issue 2: I need to let the user scroll through all the photos in their Camera Roll smoothly & quickly. I know I can write a plugin that loads its own independent View, much like the cordova.camera plugin. But is it possible to append this view inside a WebView, like an iframe?
If I can use cordova plugins for these features, then I can reuse my ionic ‘prototype’. Otherwise, I’m afraid I’ll have to build the whole app native.