« first day  last day (15 days later) » 

7:11 AM
Hi @AbdulSadikYalcin
I am storing a .txt file in my application documents directory (iOS). I want to compress and zip the file before sending it to server. Are you aware of any libraries/plugins for this ? Could you please guide me on this
I am basically an iOS developer..I don't have much experience with Cordova..
 
 
3 hours later…
9:50 AM
@subin272 Hi. Most of plugins for zipping and unzipping no longer works on cordova unfortunately, at least I couldn't get them to work
so I wrote my own plugin but my plugin only unzips
I never built it to zip files
I'm only a front-end dev
but I can help with the logic
 
user8444404
@AbdulSadikYalcin please help
 
cordova is just really a controller - a bridge between JavaScript and native code
first of all you need to install plugman: cordova.apache.org/docs/en/latest/plugin_ref/plugman.html
since you're a ios developer - it should be pretty easy
I will help with the JS side
 
user8444404
0
Q: Predefined Text is not loading

vickey colorsI am trying to Provide an option for user to edit the preloaded text as in link1 I gave an option to add the New text to user using below code, but Preloaded text is not displaying [KAYLE JACKSON] in my case in link2 Html <div entity_id="52912" style="left: 97.5px; top: 26.9915px; "> <...

 
create a folder with your plugin name; cordova-plugin-zip
you need, package.json, plugin.xml, src, www
package json;

{
"name": "cordova-plugin-zip",
"version": "1.0.0",
"cordova": {
"id": "cordova-plugin-zip",
"platforms": [
"android",
"ios"
]
},
"description": "A zipper for cordova"
}
that's an example of a plugin.xml
inside www directory, create a javascript file
zip.js
you need to refer to that file inside plugin.xml
than create ios folder inside src and add your h + m files
code what you need
I don't know objective-c but managed to get it done via following some tutorials online
i suspect you need a library to do the zipping
I used SSZipArchive
 
10:08 AM
@AbdulSadikYalcin Okay so you have created a plugin for unzipping files right ?
So you are suggesting to create a Cordova plugin making use of some native zipping libraries
I was also thinking on the same lines creating a plugin to zip and unzip files stored in iOS..rather than trying to integrate a JS code..and I didn't find any useful resources in javasript for zipping/unzipping
 
 
2 hours later…
12:17 PM
@subin272 yes
that's the whole idea of cordova
what you need to do is create zip/unzip whatever you want with native code
for the platform (ios)
then create the javascript bridge to initialize the native functions via javascript
 

« first day  last day (15 days later) »