-
Notifications
You must be signed in to change notification settings - Fork 14
Updated readme to include troubleshooting info #47
base: master
Are you sure you want to change the base?
Conversation
Merged build triggered. |
Merged build started. |
Merged build finished. Test PASSed. |
Build triggered. |
Build started. |
Build finished. Test FAILed. |
Two high level comments:
I am not sure that is happening right now - this is really Azure specific. That is not surprising, since you are only implementing Azure at this point. But it would be awesome to build this in right now as we go along. Let me put in a concrete goal. You are going to implement 3 options, right? Can we select between the three in the settings UI? Having that as a concrete goal will help ensure that we build a proper abstraction layer, rather than tying it together really tightly. |
Hi!
Thanks for the feedback! Josh On Friday, June 5, 2015, shankari [email protected] wrote:
|
|
ie, we should only evaluate projects that have cordova support. ie.e, we should filter out projects that don't have cordova support, similar to the way we filtered out javascript-only solutions like meteor. |
I saw something about inplementing it with Cordova ... I didn't really look into it much but it's there. I'll look at it today to On Friday, June 5, 2015, shankari [email protected] wrote:
|
Ok, So I think I know what to do.. We use the native code to store the data in a SQLlite db on the phone, then On Fri, Jun 5, 2015 at 12:09 PM, Joshua N Zarrabi [email protected]
|
FYI, that is exactly what my current solution does. Look at the What does "we need to store the data" mean? Don't they already do that? If Shankari
|
Yeah, as I'm coding this I'm not sure what advantage we would really get especially if what we have already works. It would probably be more elegant, but I'm not sure how much better it On Fri, Jun 5, 2015 at 3:20 PM, shankari [email protected] wrote:
|
I guess a good thing is that this helps us handle conflicts better ... if (ex != null) {
mClient.getTable(operation.getTableName()).lookUp(operation.getItemId()).get();
} This is conveniently in the code On Fri, Jun 5, 2015 at 4:08 PM, Joshua N Zarrabi [email protected]
|
It is not clear that this conflict resolution is the right thing to do,
|
I think you might be right, we may have to use push notification. In all honesty azure didnt provide that great of documentation for Android Oh well... Hopefully couchbase will provide better support. On Fri, Jun 5, 2015 at 4:36 PM, shankari [email protected] wrote:
|
I think we would have to use push notifications to do what we want On Fri, Jun 5, 2015 at 5:03 PM, Joshua N Zarrabi [email protected]
|
We don't actually use push notifications on android even for our solution. What is their story for true background sync? Do they even support it, or
|
I'm have trouble figuring it out. It seems like it's only for the ui, as in I feel like it should offer what we want, but the many hours I've spent On Friday, June 5, 2015, shankari [email protected] wrote:
|
I think that you should budget a fixed amount of time to look at this (x hours total) and move on to evaluating a different solution after that point. After all, some of the advantages of moving to a paid solution are supposed to be ease of use and superior documentation. If a motivated UC Berkeley student can't figure out how to do something in x hours, then it is not easy and not well documented. So document the things that you tried, and move on to something else. Remember that we always have our own solution as backup. |
Okay! Thanks Shankari!! Josh On Fri, Jun 5, 2015 at 6:40 PM, shankari [email protected] wrote:
|
Build triggered. |
Build started. |
Build finished. Test FAILed. |
Build triggered. |
Build finished. Test FAILed. |
Build triggered. |
Build started. |
Build finished. Test FAILed. |
Build triggered. |
Build started. |
Build finished. Test FAILed. |
try { | ||
String chosenBackend = String.valueOf(parent.getItemAtPosition(pos).toString()); | ||
Log.d(TAG, "Chosen Backend is " + chosenBackend); | ||
ChosenBackend = chosenBackend; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a valid solution because the activity can be killed at any time by the system to reduce memory pressure. You need to store this somewhere. SharedPreferences is a reasonable solution.
Build triggered. |
Build started. |
Build finished. Test FAILed. |
e.printStackTrace(); | ||
} | ||
} | ||
if (syncSkip == true) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would assume that the sanity checks need to be the first things in the sync.
Great to see that this is working! |
Hi SHankari, Thanks for the review ... I'll have to clean it up after I get authentication working On Thu, Jun 18, 2015 at 8:00 PM, shankari [email protected] wrote:
|
Build triggered. |
Build started. |
Build finished. Test FAILed. |
More code for the phone, added two new classes, not really sure how to implement them with the cordova but thats all thats remaining I think...