phonegap(cordova) not working on Windows phone 7 - windows-phone-7

Hey I have just started with windows phone development for phonegap. I have followed all the instructions in the getting started guide and created a phonegap application in visual studio. But when I run the simulator the index.html is never displayed.
I have even tried to redirect from MainPAge.xaml to index.html but no use. Also I have searched a lot of forums but most of them have inadequate information.
Could someone tell me why this is happening? I'm using VS 2010 and phoneGap 2.5.
Any kind of help will be appreciated.

Related

how to deploy an apache cordova app on iOS?

I don't own a MAC, so I rented a MAC on macincloud, now, when I try to open the VS project in VS for MAC it won't open. After a short reading I found out that I have to connect VS for MAC to my project but I haven't figure it out and that is why I've come to you guys.
Does anyone knows a site that have step by step tutorial or article on how to do it?
or how to deploy an iOS app made in Visual Studio Taco?
Thanks for your time and help!
A bit late, but the method I prefer to create the iOS app from Visual Studio is to not use it directly, rather copy the project's www folder to the Mac and build there manually. This process is explained in detail on this page.

Xamarin Android Player stuck on acquiring IP

trying to launch XAP and it's just stuck loading, I checked the settings and it's stuck on 'Acquiring IP'. I've tried to repair it in Control panel& programs, same thing. It worked fine yesterday, I didn't change anything.
Using API 19, and Windows 7.
Any help is greatly appreciated.
Xamarin Android Player is discontinued, it is recommended to use Android simulators for Visual Studio or Google x86 emulators

Xamarin Windows Phone Store Package

I' am in a bit of truble at the moment.
I try to build my Xamarin Windows Store App for publishing, but the Create App Packages Wizard, wont open I tried many solutions from the web, like unloading and reloading the project, or making a new project. But the wizard does not open with my solution i treid a normal Windows Phone app(no Silverlight), that worked but i could not Port my xamarin project to a standard Windows Phone App.
Has someone encountered a similar issue with Xamarin and Windows Phone,
or can anyone help to get my app into the Appstore?
Thanks.
I would have asked in the Xamarin Forum, but I cant reach them siche this morning.
And sorry for the engrish.
To submit package to the windows phone store you'll need to build your project (for ARM in Release mode to avoid warnings). Then on developer site when there is button to upload package you have to attach *.xap file from your project's bin\release folder (or bin folder you have specified). Then you can go through the next windows phone store app submitting steps.

New android solution issue, MainActivity.cs not found

I tried to create an android solution using Xamarin studio but it always show me "MainActivity.cs not found!" error.I re-installed the software and the same issue appears. This error occurs when I try to create a new "Android application" Solution. After goggling it seems that my Xamarin.Android installation is not complete\corrupt but I am unable to get an installation link for it on the website.
can any one help me in this ?
I finally got this to work by
uninstalling everything,
turning off antivirus,
running the "recommended" Xamarin installer as an administrator
restarting my PC.
Hope this helps someone.
If you still searching for the solution.
This my understanding of cause and the solution.
Reason you are getting this error is because you do not have a correct right. You can see this by Xamarin Installation error exception - one of the parameter is privilege.
You need xamarin android installed to get this working!!
Xamarin is currently offering subscription and you are only have starter right.
search google "xamarin starter", go to the site down the xamarin installation again. follow the steps.
Once Xamarin Visual Studio got installed then this should be working..

Strange windows phone app crashes only from the store

I am trying to update a 7.1 app from the store. For some reason it crashes only when installed from the store and only on 7.1 or 7.8 devices. My Lumia 920 with the latest updates works fine. The app runs fine if installed from VS 2010 or VS 2012. Of course all emulators worked fine. I put a Messagebox at Application_UnhandledException and it displayed this:
The type 'MyApp.MainPage', specified in the x:Class of
'/MainPage.xaml' could not be found in any loaded assembly.
Of course the MainPage class is there.
The app uses GPS and bing map and has capabilities:
ID_CAP_LOCATION
ID_CAP_NETWORKING
Can anyone shed some light on this?
I have just solved a similar problem where I had this error message when running from Visual Studio on my phone but not in an emulator. My problem was that I had different versions of the Microsoft.Live Assemblies in my 'main' app and the Assembly which contained the 'MainPage.xaml'.
I had a weird issue where my app worked differently from the store than on my device and the emulator. In my case it was because of trial mode. Apps run as though they are purchased when deployed to the emulator or device. It worked on my device from the store too, but that's because I bought it. Any other device which had not bought it ran in trial mode, and that's why it worked differently. I am betting that is why you are experiencing this crash. If it is not then we'll need more information.

Resources