Find Jobs
Hire Freelancers

Titanium Webview local storage to device storage API

$30-250 USD

Chiuso
Pubblicato più di 9 anni fa

$30-250 USD

Pagato al completamento
Simple application for experienced titanium developer. Problem: We have a web based app that uses javascript to store string information in local storage ([login to view URL]) using key/value pairs. We want to build a wrapper for this site so we can release it as a native application in IOS Ipad, iphone, and android. Our website needs to store more than max 5mb limit for local storage on mobile. We need to build a bridge between the titanium local device storage and javascript. We will build the client javascript to detect if it is on mobile device and send custom events to titanium API you build. The webview has to point to REMOTE website and CANNOT point to local assets. This means it will use evalJS in titanium and listen for custom events fired by the client. This is a sample of how the titanium code would look (I do not know titanium so this is just for explanation): IF WE CAN PASS data to each other back and forth that would be better than setting variables in javascript like I did below. var webview = [login to view URL]({ url: '[login to view URL]' // REMOTE URL }); [login to view URL](webview); [login to view URL]('load',function(e) { // CAN TITANIUM listen for custom events from the javascript? [login to view URL]('Custom-Event-GET', function(e) { var ret = [login to view URL]("GET_KEY"); // GET_DATA_KEY will be a html javascript variable that will be populated with a string which is the key to "get" // ..... here you would locate the data you stored on the DEVICE storage (ipad hard drive for example) // .... the data you locate and set would be stored under a key of ("GET_KEY") and if it // was not found you would return null var f = [login to view URL]([login to view URL], ret); var contents = [login to view URL](); // you now set javascript variable to return data var ret = [login to view URL]("GET_RETURN=" + [login to view URL] + ";"); )}; [login to view URL]('Custom-Event-SET', function(e) { var keyToSave = [login to view URL]("SET_KEY"); var dataToSave = [login to view URL]("SET_DATA"); // SET_KEY will be a html javascript variable that will be populated with a string which is the key to "set" or save the data under // SET_DATA will be a html javascript variable that will be populated with a string which is the data to "set" or save within the key (file) specified above (SET_KEY) // ..... here you would store/save the data in the html variable SET_DATA that you now have // ..... in dataToSave variable above // .... the data you store/save would be saved under the key above keyToSave (SET_KEY) that you got from the client javascript // The only data type you will ever be sent is string // data but it could be up to 10mb size per key and is only limited by the user's hard drive space available on the mobile device (ipad, tablet, etc) // the only reason a failure should ever occur is if the user's hard drive is full var f = [login to view URL]([login to view URL], keyToSave); if( [login to view URL](dataToSave) ){ // write to the file return true;} )}; }); This is sample of how the remote client html would look: <html> <head> <script> var GET_KEY = ""; var SET_KEY = ""; var SET_DATA = ""; var GET_RETURN = null; function get(){ $.trigger( "Custom-Event-GET" ); // here i setInterval and keep checking GET_RETURN until its not null because your titanium set it UNLESS WE CAN PASS DATA BACK AND FORTH IN EVENTS! PLEASE CHECK! } function set(){ $.trigger( "Custom-Event-SET" ); } </script> </head> <body/> </html>
Rif. progetto: 6568999

Info sul progetto

6 proposte
Progetto a distanza
Attivo 9 anni fa

Hai voglia di guadagnare un po'?

I vantaggi delle offerte su Freelancer

Imposta il tuo budget e le scadenze
Fatti pagare per il lavoro svolto
Delinea la tua proposta
La registrazione e le offerte sui lavori sono gratuite
6 freelance hanno fatto un'offerta media di $865 USD
Avatar dell'utente
Hi SIR, Please go through my reviews for information on my expertise in Titanium. i can start todat itself. regards, Amar
$667 USD in 4 giorni
5,0 (20 valutazioni)
5,3
5,3
Avatar dell'utente
Hi, Hope we are the one whom you are finding. What you want is what we can give you exactly. I believe in straight forward chats and its really good if we can chat on functions in detail. I have some specific suggestions too if you want to apply. We generally dont bid on projects which we cant do but this project we can surely achieve. Plus our services are unique which you cant get it anywhere else. We have 24/7 support, lifetime fixes at no cost, Help in marketing of the product, special dedicated resources on the projects, etc. For more information please open a chat, Thanks Deves
$1.800 USD in 30 giorni
5,0 (2 valutazioni)
3,3
3,3
Avatar dell'utente
A proposal has not yet been provided
$147 USD in 3 giorni
0,0 (0 valutazioni)
0,0
0,0

Info sul cliente

Bandiera: UNITED STATES
Brandon, United States
0,0
0
Metodo di pagamento verificato
Membro dal nov 4, 2013

Verifica del cliente

Grazie! Ti abbiamo inviato tramite email il link per richiedere il tuo bonus gratuito.
Non è stato possibile inviarti l'email. Riprova per piacere.
di utenti registrati di lavori pubblicati
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Caricamento anteprima
Autorizzazione per la geolocalizzazione concessa.
La tua sessione è scaduta ed è stato effettuato il log out. Accedi nuovamente per piacere.