Creating and installing a Plugin for mobile Safari on ios4 devices - iphone

I have created a simple web plug-in to write data to file system. This works as expected on a mac Safari. Here i have to manually place the plug-in on to the /Library/Internet Plug-Ins folder. My question is there a way to find if the plug-in is not present through JavaScript and if it is not then download and install the same. I also would like to know if the same can be done on mobile Safari running on ios4 devices?

Obviously you can not load Plugins of any kind in Safari on the iOS device. This is the main reason Flash does not exist on iOS.
On the Mac you can do that. But you need to create the plugin in C++ and for each platform independently.
If you code the plugin correctly, it should be possible to "detect" it using JavaScript. I highly doubt you can download it automatically, though. This would pose a very large security hole for every user.

Related

How to test iphone phonegap app on device without mac and xcode?

I build a phonegap app and want to test it on my iphone without jailbreak it.
I use windows and do not own a mac.
I have an apple developer account.
Is it possible to test my app without jailbreak, xcode and mac?
Thanks!
Phonegap Developer app (http://app.phonegap.com)
It's not perfect (some of the plugins are a little out-of-date), you can only use core plugins, etc., but it does work.
If you need custom plugins or plugins not included in the distribution (or newer versions of those plugins), you're sadly out of luck, I think. If you're feeling adventurous, google for "iOS toolchain Windows" (Or Linux). You /might/ get lucky, but there's not going to be any real support for it.
if it's just phonegap app, Try using ripples phonegap emulator PhoneGap emulator
Else copy all the static HTML & JS files and load them in your phone. Open the index file in the mobile browser.

How to develop applications for windows or bada using phonegap and eclipse plugin?

I have installed eclipse phonegap plugin and I am easily able to make applications for android. However I want to make application for any other platform like bada, tizen , blackberry, etc. But when I create new Phonegap project, it doesn't show any option for choosing platform. It directly takes me to android. Is there any way that I can use this plugin for developing for other platforms.
I have googled a lot but nothing found relevant.
Probably you may be interested in Titanium. Latest version supports (check beta) Tizen and Blackberry 10 as well as Android and iPhone. With it you will be able use javascript for mobile application development. Also it creates "native" application instead of html if possible.
And forgot Bada. It`s gone.

Iphone app using Phonegap and the OS and IDE I can use

I have a requirement from client to develop an iPhone application. As I am a dot net developer I thought it will be bit challenging for me. So I thought of developing it using phone gap. So before suggesting something to the client I need to make sure of certain points.
Do I really need a mac machine to develop this?
Since I am using only html5, css and js, can I develop it in Visual studio/Eclipse? I have already tried some samples in both these IDE. And once the app is ready I have read about using PhoneGap Build I can make it ready to use in iPhone...
But from the following link, what I understood is I need an apple computer, mac os and Xocde to develop it even though it is not a native mobile app.
http://mobile.tutsplus.com/tutorials/phonegap/phonegap-development/
Please guide me with some insights before talking to the client.
Thanks.
PhoneGap Build is a cloud-based service built on top of the PhoneGap
framework. It allows you to easily build those same mobile apps in the
cloud. To get your application build just what you need is to simply
upload your web assets - a ZIP file of HTML, CSS and JavaScript, to
PhoneGap Build, after some time you’ll receive the download URLs for
all mobile platforms.
I read it from here , they also mentioned about installing SDKs
you might want to install some of the SDK emulators if you don’t own a
particular device that you want to test a build for.
Here in this link they have put a note
Since PhoneGap Build uses Apple's standard development process to
build applications, you will need to sign up for their developer
program to build iOS applications on PhoneGap Build. You will also
need a Mac to configure your certificate and provisioning profile.
Consider using a Mac Virtual machine.
You mainly need a mac to create key value chain pairs to sign your app and test it on a device. You can just get a Mac VM to do this is my recommendation. You can then use the phonegap build service to compile your www folder for iOS
Here is a good demo for multiple index files to have one solution base
http://blog.safaribooksonline.com/2012/07/13/mcrooster-a-phonegap-application-with-a-single-codebase/
I think you should do a bit more research before jumping into bed with PhoneGap for the sake of not being an Objective-C developer. PhoneGap has its limitations, and my experience of it compared with native app development is pretty poor.

Can an android app be installed/converted to run on an iPhone?

I have an android project that targets Android 2.2 (developing in Eclipse). Exporting the android project to the Droid Incredible works perfectly. Is it possible to export the project to a file suitable for installing on an iphone? I know that most iPhone apps are developed using xCode, but I'm not sure if xCode packages into a .apk or other file format that's equivalent.
Thanks in advance.
Only if you write or port your own complete Dalvik VM (in Objective C or Javascript), plus developing the runtime support needed for any and all API calls that your app uses, and bundling all that with your app, as that would be the only way to run a regular Android project on an iPhone.
A non-trivial amount of work.
Completely rewriting the app in Objective C and Cocoa Touch would be magnitudes easier.
Not even remotely possible. Android and iOS are completely different environments. There are a few frameworks for developing applications that'll run on either, but the results often end up looking kind of weird on both platforms.
You cannot export an Android application and run it in an iPhone because the hardware/software stacks/APIs/etc. are different.
However, if you build an application using for instance PhoneGap (a HTML5 based application framework), it is possible to deploy it on different mobile platforms.
If you feel curious about multi-platform mobile frameworks (Android/iPhone) you may find this thread interesting.

Mobile Development for iPhone, Android, and Blackberry

I recently stumbled into PhoneGap and I love the concept, but I can't get my first try at an Android application working. The documentation skips a few details and the comments are filled with people running into problems.
Does anyone out there have PhoneGap running? What did you tweak for Android?
There are about 3 different frameworks, PhoneGap, QuickConnect, and Rhomobile.
QuickConnect and Rhomobile have better documents at least for Android support.
I used PhoneGap for a little bit then switched to QuickConnect and Rhomobile.
how i setup phonegap was,
boot with Linux liveCD, go to the folder of phonegap, and run the makefile. it will generate javascript files. copy the phonegap.js to the assets, boot with windows again and include the phonegap javascript file in your main html.