11 Jun 2014 2:14 AM #1
Answered: Secure Local Storage
Answered: Secure Local Storage
I was watching a video, I believe from a preview conference of Sencha Space
and it mentions (at 44:50) an Ext.space.proxy.SecureSql proxy for secure local storage with Touch Applications. However I am not able to find this proxy, was it dropped from the Sencha Space API pls or there is some other way to implement secure local storage?
12 Jun 2014 5:48 AM #2
If you are building a Sencha Touch application we have two example apps that have a custom SecureSql proxy.
Here is a direct link to the SecureSql proxy:
We don't include it in the CDN hosted space.js because it does not depend on touch and can't load Touch classes on its own.
Eventually this proxy will become part of the other Sencha frameworks. You can use it now by adding the proxy to your project just like our examples do.
18 Jun 2014 5:52 AM #3
I am finding trouble to use the custom SecureSql proxy mentioned above. It seems that either the proxy is not reading or writing the data to the SQLlite database as no data is loaded when the application is opened. I even tried the Sencha sample application https://github.com/sencha/SpaceExamp...aster/Contacts but it does not seem to work either. However if I am not mistaken this used to work some time before. Did an update to Sencha Space cause some issues?I am using Sencha Space Client 1.1.5 on Android 4.3
18 Jun 2014 8:12 AM #4
We have a deployed copy of the Todo application running here: http://spaceexamples.azurewebsites.net/Todo/ Can you give that one a try. I've just tested that app on a few android phones including 4.2 and 4.3 and it works as expected. I can kill the space app after added items, or logout via switch organization and the data is still there when I re-launch the application.
19 Jun 2014 12:18 AM #5
I have tried the TODO app you mentioned. It works as expected in terms of UI, however the items are not there once I refresh. I added the Secure Database and Secure files api to the application. So I suspect it is the Sencha Client installed on my Android Tablet.
Maybe you can try the Contacts example that is deployed here
http://188.8.131.52:8080/SSS/ and see if its working on your devices. On my device is not working,
19 Jun 2014 8:24 AM #6
We have been able isolate the issue with the SQL Cypher libraries not always loading correctly Space Client version 1.1.5 running on Android 4.4. We are working on the fix and we will get this fixed ASAP and update the google play store. I'll update this thread when the fix is live.
19 Jun 2014 11:12 PM #7
Just to be clear, I am using a Tablet with Android 4.3 (not 4.4). So does the bug affect also 4.3?
20 Jun 2014 9:35 AM #8
23 Jun 2014 2:48 AM #9
That seems to have sorted the problem with SecureSql
However now when I build my application I can see the following error in the Chrome developer tools.
I am also getting errors which I don't get in the non-built version
XMLHttpRequest cannot load http://space.sencha.io/space.js?1403519992803. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
23 Jun 2014 6:29 AM #10
Glad to hear we were able to fix that issue for you.
As for space.js when running in the Space Client we actually intercept that request a serve a locally cached copy of space.js instead of checking the network. It should be getting loaded without hitting the network stack.
So when you are using Chrome DevTools are you loading your application outside of the Space Client?