title: MobileFirst JSONStore working as intended on emulator, but failing on ios device
body: <p>I have the following lines of code to add some variables to a local collection: </p>
  
  <pre><code>var data = {
      name: '123',
      brand: '123',
      model: '123',
      img: 'imgurl',
      category: '123',
      segment: 'Recreational',
      pilotFstName: '123',
      pilotLstName: '123',
      insuranceNumber: '123',
      insNumber2: '123',
      extras: '123',
      hasCamera: '123',
      insuranceDate: '123'
  };
  
  var collectionName = 'Drones';
  var options = {};
  
  WL.JSONStore.get(collectionName)
      .add(data, options)
  
  .then(function(numberOfDocumentsAdded) {
      //handle success
      alert("Done");
  })
  
  .fail(function(errorObject) {
      //handle failure
      alert(errorObject);
  });
  </code></pre>
  
  <p>This works fine working in a browser, but fails with an <code>INVALID_SEARCH_FIELD</code> error in any iOS physical device. This is the full error stack in Xcode.</p>
  
  <blockquote>
    <p>[JSONStoreCollection findWithQueryParts:andOptions:error:] in
    JSONStoreCollection.m:603 :: Error: JSON_STORE_INVALID_SEARCH_FIELD,
    code: 22, collection name: Drones, accessor username: jsonstore,
    currentQuery: (null), JSONStoreQueryOptions: [JSONStoreQueryOptions:
    sort=( { identifier = desc; } ) filter=(null), limit=1, offset=(null)]</p>
  </blockquote>
  
  <p>My Collections.js : </p>
  
  <pre><code>function getCollections(){
  
      return {
  
          Account : {
              searchFields: {
                  userName:"string",
                  password:"string",
                  frstName:"string",
                  lstName:"string",
                  mail:"string"
                  }
          },  
          Drones : {
              searchFields: {
                  name:"string",
                  brand:"string",
                  model:"string",
                  img:"string",
                  category:"string",
                  segment:"string",
                  pilotFstName:"string",
                  pilotLstName:"string",
                  insuranceNumber:"string",
                  insNumber2:"string",
                  extras:"string",
                  hasCamera:"string",
                  insuranceDate:"string"              
                  }
  
  
  
          },
          Historial : {
              searchFields: {
                  name:"string",
                  date:"string",
                  posXStart:"string",
                  PosYStart:"string",
                  PosXFinish:"string",
                  PosYFinish:"string"         
              }
  
  
  
          }
  
      };
  };
  (function () {
  
      WL.JSONStore.init(getCollections(), {
          // password : 'PleaseChangeThisPassword'
      })
  
      .then(function () {
          WL.Logger.debug(['All collections were loaded successfully'].join('\n'));
      })
  
      .fail(function (errObj) {
          WL.Logger.ctx({pretty: true}).error(errObj);
      });
  
  }()); 
  </code></pre>