-
Notifications
You must be signed in to change notification settings - Fork 78
Custom Aware client manual syncing not working #292
Comments
Hi, you are missing to add your plugin contentprovider as a syncadapter (see xml/) so that Android knows it is there and available to sync with the other sensors and plugins. See: https://github.com/denzilferreira/aware-client/blob/master/aware-core/src/main/res/xml/sync_accelerometer.xml Notice that for this to work, you need to create and sign your own AWARE client, as syncadapters only work for the same accountType and developer certificate. In the future, we're abandoning syncadapters altogether because of this (this essentially broke the plugin-based architecture and we have to bundle all plugins together with the client). |
Do you mean building the Cordova app with my own developer key?
Can I still rely (for the lack of a better choice) on the syncadapters now? |
Yes to both questions :)
#> sudo mail from:Denzil
#> Sent successful (elapsed .001 seconds)
… On 26. May 2020, at 10.28, Bowen Xu ***@***.***> wrote:
you need to create and sign your own AWARE client
Do you mean building the Cordova app with my own developer key?
In the future, we're abandoning syncadapters altogether because of this
Can I still rely (for the lack of a better choice) on the syncadapters now?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hello, I added all XML's in your
But checking the logcat output, the only output is this:
So I still don't know whether the manual sync succeeded or not. I remember that in a standard Aware Android client is triggered, a long list of data uploading should be in the logcat. Is there anything else that I am missing? |
Hello Denzil, In my fork, I added logcats that reveal the Aware-as-plugin background tasks; I compared them with the native Aware Android client but didn't find anything revealing. Could you take a look and point out what's missing? The link is here. |
See e-mission/e-mission-docs#501. Issue solved. |
Hello,
We are trying to build a Cordova plugin based on the latest release of Aware Android,
com.github.denzilferreira:aware-client:master-SNAPSHOT
.I confirm that the study server is running:
I had turned on Aware debugging:
However, when I tried to manual sync,
The app (or the plugin) didn't respond to sync or produce an error log. I noticed that in Aware.java, The syncing mechanism uses
ContentResolver.requestSync
. After reading a StackOverflow page, I realized that I might be missing some XML config in my plugin.Could you point out what am I missing? Thanks!
The text was updated successfully, but these errors were encountered: