Find Jobs
Hire Freelancers

Titanium Webview local storage to device storage API

$30-250 USD

Closed
Posted over 9 years ago

$30-250 USD

Paid on delivery
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>
Project ID: 6568999

About the project

6 proposals
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
6 freelancers are bidding on average $865 USD for this job
User Avatar
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 days
5.0 (20 reviews)
5.3
5.3
User Avatar
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 days
5.0 (2 reviews)
3.3
3.3
User Avatar
A proposal has not yet been provided
$147 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Brandon, United States
0.0
0
Payment method verified
Member since Nov 4, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.