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

Error to connect to IndexDB in Android device #49

Closed
abdonrd opened this issue Jun 1, 2016 · 13 comments
Closed

Error to connect to IndexDB in Android device #49

abdonrd opened this issue Jun 1, 2016 · 13 comments

Comments

@abdonrd
Copy link
Member

abdonrd commented Jun 1, 2016

Description

With this simple code:

screen shot 2016-05-31 at 17 31 36

In desktop everything works, but in Android device (remote debugging in Nexus 5X) I have this error to connect to IndexDB:

screen shot 2016-05-31 at 17 15 20

@BorntraegerMarc
Copy link

I think the problem arises if you build the project with polymer build

@BorntraegerMarc
Copy link

Found the solution. I added:

    "bower_components/app-storage/app-indexeddb-mirror/app-indexeddb-mirror-worker.js",
    "bower_components/app-storage/app-indexeddb-mirror/common-worker-scope.js"

To polymer.json. From the polymer starter kit

@BorntraegerMarc
Copy link

However when I run the demo then my persistedData never takes the values from indexdb. I put in manually some values in there but persistedData is not updated. @abdonrd you ever had that issue?

@abdonrd
Copy link
Member Author

abdonrd commented Apr 4, 2017

I think is the same issue: https://github.com/Polymer/polymer-build/issues/22

@BorntraegerMarc
Copy link

@abdonrd but it worked for me with adding it to the polymer.json... and doesn't explain that persistedData does not updated, right?

@abdonrd
Copy link
Member Author

abdonrd commented Apr 4, 2017

@BorntraegerMarc
Copy link

jep, saw that thanks @abdonrd :) but I was more asking about the general usage (because documentation is veeery limited for this element).
So persistedData actually never got updated. Also not if I served it over polymer serve alone. Did it ever work for you?

@abdonrd
Copy link
Member Author

abdonrd commented Apr 4, 2017

Yes, with polymer serve it works for me:

screen shot 2017-04-04 at 12 36 14 pm

@BorntraegerMarc
Copy link

BorntraegerMarc commented Apr 4, 2017

@abdonrd Could you help me out real quick? I only get the persistedData if the normal data (or liveData) has been set/updated:
image

I included it:

<app-indexeddb-mirror
                    id="appindexdb"
                    key="cats" log
                    data="{{liveData}}"
                    persisted-data="{{persistedData}}">
</app-indexeddb-mirror>

But I never set liveData to a value. It's undefined. I expect that the app-indexeddb-mirror element would load persistedData automatically from the mirrored_data DB:
image

Is that not the case?
Because that value is already stored.

@abdonrd
Copy link
Member Author

abdonrd commented Apr 7, 2017

@BorntraegerMarc try to isolate the problem in a pastebin and I'll check it out.

@hyyan
Copy link

hyyan commented Dec 21, 2017

@abdonrd This issue is one year old and still no solution?

@abdonrd
Copy link
Member Author

abdonrd commented Dec 22, 2017

@hyyan I'm sorry, but I have not tried again about this.

@abdonrd
Copy link
Member Author

abdonrd commented Feb 11, 2019

As far as I know, the Polymer Elements are not going to continue developing. So I close this issue.

@abdonrd abdonrd closed this as completed Feb 11, 2019
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

3 participants