Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get the changes - worker and db.changes #9

Closed
ronycohen opened this issue Feb 17, 2016 · 5 comments
Closed

Unable to get the changes - worker and db.changes #9

ronycohen opened this issue Feb 17, 2016 · 5 comments

Comments

@ronycohen
Copy link

When testing the db.changes with the worker adapter :

I encounter a strange behavior with my chrome desktop and the chrome Android in regard to the paste.pouchdb.com.

When using the test script on this site (available here) : http://paste.pouchdb.com/paste/1df1i5
I can see in the console logs that the db.changes listener is working.

image

When I use this code on my Ionic APP client The db.changes listener is not working.

Do you know what is going on, and why I encounter this issue ? ?

Regards,
Ron

@ronycohen
Copy link
Author

The script is working when using a webServer for the execution.

image

I'm retesting on ANGULARJS / Ionic.

Currently on my app, the db.changes doesn't work at all.

@ronycohen
Copy link
Author

This is the result of the script on the Ionic APP (I replaced the current index.html with the script http://paste.pouchdb.com/paste/1df1i5)

I'm don't have the db.changes results

image

@nolanlawson
Copy link
Member

I'm sorry, can you please provide some simple steps to reproduce? I don't understand what the problem is, or how to reproduce it.

E.g. fill out this form:

  1. Steps to reproduce
  2. Expected result
  3. Actual result
  4. Platform, browser, etc.

@ronycohen
Copy link
Author

I'm on it

1.a db Creation with Worker adapter
1.b db.changes declaration with logging of changes.
1.c db.bulkDocs of 3 docs
2. catch the changes and get the infos in the logs
3. Doesn't catch anything
4. Chrome on Android. Chrome on my laptop

Same with webSql is working.

@ronycohen ronycohen changed the title Strange behavior - worker and db.changes Unable to get the changes - worker and db.changes Feb 17, 2016
@ronycohen
Copy link
Author

I found the problem.

I wasn't able to see error inside the web worker.
I implemented an external variable in the filter property of the db.changes.
and the web worker wasn't able to get it, and I did not have any errors :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants