pouchdb-community / pouchdb-authentication

User authentication plugin for PouchDB and CouchDB.
Apache License 2.0
775 stars 118 forks source link

Database has a global Failure - UnknownError: Error preparing Blob/File data to be stored in object store on iOS devices in non-private-mode #233

Closed kle-dev closed 6 years ago

kle-dev commented 6 years ago

As you may now, ember-pouch doesn't work well in this moment with iOS devices. : As described here

everyone nows this walkthrough of ember-simple-auth will let us set up a simple login-form:

{{!-- app/templates/login.hbs --}}
<form {{action 'authenticate' on='submit'}}>
  <label for="identification">Login</label>
  {{input id='identification' placeholder='Enter Login' value=identification}}
  <label for="password">Password</label>
  {{input id='password' placeholder='Enter Password' type='password' value=password}}
  <button type="submit">Login</button>
  {{#if errorMessage}}
    <p>{{errorMessage}}</p>
  {{/if}}
</form>

which will call of course in pouchdb-authentification as described here

db.logIn('identification', 'password').then(function (batman) {
  console.log("I'm Batman.");
  return db.logOut();
});

and of course this will make this error: Image of Error

Is there a way to include it asap ? Or will it not be implemented ?

Of course at this moment, iPhone User can use private mode and everything is working, but that can't be a normal issue as everything should working on iOS 11.3 now as shown here

Expected Behavior

Everthing is and should fine like on Android or especially in iOS Safari private mode yet

Current Behavior

as you can see on that picture on top afterwards you login / connect to database and after you want to create records: Image of Error II

Possible Solution

https://github.com/pouchdb/pouchdb/issues/7057

Update

May its not an pouchdb-authentification issue, but as I wrote that now, may this is still an information about that problem.

ptitjes commented 6 years ago

Duplicate of pouchdb/pouchdb#7057. Closing.