Thursday, March 8, 2012

PhoneGap - Download and open a file (pdf, zip, image...)

In the last week I was looking for a solution to show a pdf using phonegap on android and iPhone. Searching on internet I figured out that a possible solution would be the Phonegap ChildBrowser plugin. This plugin basically open the WebView native component and show the address. After some modification (because i needed to use POST request and https protocol) of this plugin I managed to make it work on iPhone. So I did the same modification to the Android code but this time I was not so lucky. I started to find in the network and I came across the Giovesoft Blog post.

Wednesday, March 7, 2012

iOS dev - Post parameters to an URL with objective-C


In the last months I started to learn objective-C. I was working mostly modifying an existent project. I needed to open a webview wher the parameters are sent by POST method and they has to be passed with content-type "application/x-www-form-urlencoded". So this is the code I used: