Does windows phone8.1 sdk support winjs/javascript as native - windows-phone-8

I used C# develop a WP8 app. I'm wondering if the Windows Phone 8.1 SDK supports WinJS?
I saw there are some news that windows phone 8.1 start to support WinJS
If so, I will move to WinJS for WP and WinRT both.
Your comment welcome

As of April 18th, 2014, yes, JavaScript and the WinJS framework are supported by Windows Phone 8.1.
Announcement here: http://blogs.windows.com/buildingapps/2014/04/18/winjs-on-windows-phone-8-1/

As of February 2014, there is no official documentation available currently on Windows Phone 8.1.
So, any comments here would be speculative or based on confidential/leaked documentation. I would suspect that your question will be answered at the Microsoft BUILD 2014 conference in April 2014 (either confirmation or that it was just a rumor).
Given the information disclosed, you might also consider that WinRT applications would be possible on the Windows Phone 8.1+, which would mean that you could write a Win 8.1 Store application using C# and XAML that would run on both platforms. So, switching to WinJS might not be necessary if you wanted to continue to use your core XAML and C# skills.

Related

Windows Phone project in an universal app solution cannot have admob control

I'm creating an app using the universal app template from visual studio 2013 update 2 and I'm trying to add Admob SDK. However, when I try to compile even before adding the adView control to a page I receive an error saying that this kind of project cannot have an adcontrol.
Does anyone know a solution for this?
As for now AdMob library contains only Silverlight components. So it is not compatible with WinRT and Windows Phone 8.1 apps. The only alternative for now is Microsoft's pubCenter, which is limited to list of countries.
Also you can use AdDuplex - it is not exactly for earning but for promoting your app.

Universal App (WP & WinRT) should i use Cirrious MvvmCross or Galasoft MVVM Light Toolkit

I would like your input, so that i can make a good decision on whether I should use Cirrious MvvmCross or Galasoft MVVM Light Toolkit?
I am going to be developing 2 applications using Universal Apps (Windows Phone 8.1 and Windows 8.1) in XAML/C#. I am not new to developing windows phone and windows 8 apps however i am new to developing MVVM apps and thus would greatly appreciate you into in this?
Should i use Cirrious MvvmCross or Galasoft MVVM Light Toolkit, (should I use something else) what are their strengths and weakness?
Thank you for your time and your help!
Is there an added benefit for using MVVMCross in your app? Will you be developing an Android or IOS APP? If the answer no, then there is no need for MVVMCross or such. The new WinRT API should have 95% of what your app needs. You can add a portable class library to the solution and share third party libraries between the apps as well.
Good Luck.
MvvmCross is the best way to cross-platform work with xamarin for exemple but you can work with it just for create windows and windows phone app.
MvvmLight is really good to implement mvvm pattern in your project.
Just for create ms app, you should work with mvvm light.
MvvmLight does not have support for iOS yet. Support for Android was added in version 4.0 in May 2014. More info here : http://blog.galasoft.ch/posts/2014/05/mvvm-light-v4-4-with-xamarin-android-support/
MvvmCross does not support Universal Apps (yet).
More info here :https://github.com/MvvmCross/MvvmCross/issues/656
A ray of hope here : http://www.microsoft.com/en-gb/developers/articles/week05jun14/mvvmcross-support-for-universal-apps
Looks like you have two options -
MvvmCross allows you to share code with Windows Phone and Windows 8 also. Just not via Universal App project. If the objective is to share code - you can go with MvvmCross. You wil get your WinPhone and WinStore apps along with Android and iOS also.
Start with Mvvmlight on Universal App and hope for Xamarin.iOS support soon.
http://blog.galasoft.ch/posts/2014/04/building-a-universal-application-for-windows-phone-8-1-and-windows-8-1-with-mvvm-light/

windows phone8.1 support winjs/javascript as native already?

I'm wondering if the Windows Phone 8.1 SDK supports WinJS? I saw there are some news that windows phone 8.1 start to support WinJS
If so, I will move to WinJS for WP and WinRT both.
Your comment welcome
Yes, the combination of Windows Phone 8.1 and WinJs 2.1 will allow you to build cross platform WinJs based applications.
Source
Universal apps written in Xaml also will be a very good way to share code across the two platforms with minimal changes.

CurrentApp.ReportConsumableFulfillmentAsync vs CurrentApp.ReportProductFulfillment

I have to implement "in-app purchase" both for Windows 8.1 and Windows Phone 8 app. The API looks the same for both platforms, besides one method: "CurrentApp.ReportProductFulfillment" (only WP has it). However, both platforms have "CurrentApp.ReportConsumableFulfillmentAsync".
My preference is to write fully reusable code (same code) for both platforms, if possible. MSDN documentation is not clear enough, so I want to understand:
Can I use ReportConsumableFulfillmentAsync on WP instead of ReportProductFulfillment? Are they have the same functionality? (maybe they left ReportProductFulfillment for backward compatibility).
Do I have to call ReportConsumableFulfillmentAsync after buying consumable only, or after every store purchase?
Thanks!
According to MSDN ReportConsumableFulfillmentAsync is Windows Phone 8.1 API, so you cannot use it when creating Windows Phone 8 apps. Stick with ReportProductFulfillment and Windows Phone 8 apps for now, it will take some time for Windows Phone 8.1 to get on the market
Only for consumables
If your are looking or a nice in-app wrapper, take a look at this https://github.com/igorkulman/Kulman.WP8/blob/master/Kulman.WP8/Services/WindowsPhoneStoreService.cs

Windows store app game

I want to create simple 2D game (touch/click to win) and I have experience with C# and XNA for WP7.
But now at W8 there isn't XNA afaik.
What technologies I have to use for this game?
I want to run it on desktop W8 and WinRT.
Thank you for your help!
If the game is simple enough graphically - you could just use Silverlight on Windows Phone and XAML on Windows 8 which would let you share a lot of the code. Another option is to use XNA on Windows Phone and MonoGame on Windows 8. MonoGame is an open source version of XNA. Otherwise - on Windows you can use DirectX with C++ or using SharpDX with C#, but these are not available on WP7. They will probably be on WP8 only. Finally - Unity3D support is coming soon, but the final version is not available yet.