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

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.

Related

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.

Titanium and PhoneGap

I'm new to Titanium and PhoneGap and analyzing a bit the two is not possible to develop iPhone with a PC with windows using either of the two right? Well I mean in PhoneGap in the most current versions is only possible to develop without publication.
I wonder if this is actually correct and whether there is a way to make an application to one of these two technologies (Titanium and PhoneGap) Fragment as a view of the native Android devices for both Android and iPhone / iPad. Improving question, make an application to view the devices can be adapted for smartphones and tablets for better use of the screen?
If yes there is some example code and/or source of research?
PhoneGap has an offering called PhoneGap build which just came out of beta. It lets you build your apps in the cloud without a Mac.
You might still need a Mac for certificate (p12 bundle) generation or you can use a service like Mobundler.
For Titanium, a recent service called Foundry22 lets you build your apps without a Mac or any native SDKs installed locally. You just need Titanium Studio and a hosted Git repo.

How do you build an iPhone App with MobiOne?

I'm using MobiOne to build an App (I don't have a Mac or know Obj-C), but I'm wondering how to compile the App into Obj-C. Has anyone tried this? I have my design done and tested in the emulator, but do not see how to build the code.
My understanding is that MobiOne is not designed to be uploaded to Apple's app store. You can use Phone Gap to help get your app into a native environment since MobiOne uses web technologies. Phone Gap should allow you to publish to the app store, but the app is still subject to Apple's quality control system.
EDIT: You will still need a mac to publish the app. Or you can just use the app as a website on your device(s).
You can build the app with the Mobione built-in compiler. Go to the "Project" menu and click "Build iOS app" and your app will be compiled. You cannot compile with Obj-C.
Compile it into an iOS native app using Mobione on Windows. Upload it to the App Store using Apple's Application Uploader on a Mac. Easy.
According to Apple, you are not supposed to make iPhone apps without a mac. Also learning objective c MIGHT just be a good first start before making an app.
The first comment in your question provides a link, and one of the first paragraphs in that link states this:
"The traditional approach to iOS application development requires developers to create their apps using Apple’s Objective-C programming tools and Macintosh(tm) hardware. MobiOne runs on your Windows OS (Win7 to XP) hardware and offers developers an alternative cross-platform programming model based on HTML5 open web standards and virtual device services, e.g., contacts, camera, audio... "
Of course this allows you to do it, but that doesn't mean that the appstore will accept your app if you try and submit it through MobiOne. I'm not too sure on the subject, but I would do some research and figure out if apple allows you to do this.

Eclipse: one PhoneGap project for iPhone and Android?

I'm trying out PhoneGap, so I followed the instructions to create an Android Project in Eclipse.
But now I'm wondering how I can use this same code for building an iPhone app.
Is there something like a hybrid project in Eclipse!?
UPDATE:
I realize now that it's not possible to use PhoneGap on Windows to develop iPhone apps? That's too bad... is there any way to use PhoneGap on Windows to compile for iOS ??
In theory PhoneGap build should allow iPhone development on Windows.
However Nitobi was bought out by Adobe (PhoneGap:Build service may have changed), and you may still need iOS to upload your app (might be able to get around with a jailbroken iOS?!).
A dodgy solution could be to install OSX in a vbox virtual machine :)
No, there is no way to develop iPhone app on Windows using PhoneGap or Titanium.
Because they need iPhone SDK and Android SDK on back-end, which is not possible on windows environment. However you can make both apps on iOS simulations.

Creating and installing a Plugin for mobile Safari on ios4 devices

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.