In-app purchase with phonegap and javascript - windows-phone-8

Ive created an app with phonegap and I want to add IAP for WP8. Figured I have to create a plugin, but I cant anybody else doing this for WP8. The shop functions are statics awaited in C#, is it doable?
Maybe there is a JS lib for WP IAP? The IAP functions depend on some dlls, how do I include these dlls in my phonegap plugin?

Related

How to build a Today Widget / App Extension with Cordova?

An app I am working on needs a Today Extension / Widget. Are there any resources on how to build one into an Cordova app?
I found this, but it's not written very clearly and from what I understood seems to be a native app that only uses a HTML5 element in the app and widget to display some data :/
Yes you are right, today extension are a native thing. I recently also did a lot of research on how to integrate one into a cordova project dynamically and ended up creating my own cordova-plugin for that. You can find it here, maybe it will be useful for you too! Nevertheless you will have to implement the widget in Swift.
The plugin takes an already developed widget and integrates it in an cordova-ios project on every cordova platform add ios using a hook which parses and modifies the project.pbxproj via the help of cordova-node-xcode.

Xamarin WP8 DataTransferManager

Windows Phone API has the namespace DataTransferManager to share files from internal storage.
I'm trying to use this feature on my Xamarin App.
I got a WP8 XAML page displayed via Xamarin's PageRenderer. Inside this page I call DataTransferManager.GetForCurrentView() like described in many tutorials. But at runtime the App crashes with NotSupportedException.
Please help me on how I can share files (no pictures) from my App.
Thanks
I found a solution: Upgrading the WinPhone Project to WP8.1.
So far there are no errors with PCL and 8.1.

IAP Mock Library

I'm trying to follow this tutorial on the Microsoft website that shows you how to add the Mock project to my project. I'm not sure how to add a project to my original project and link the Class files. It asks me:
As an alternative to testing in-app purchase by creating a Dev Center beta app, you can add the mock in-app purchase library to your solution. In Visual Studio, add the mock in-app purchase library as an additional project to your solution.
But I'm not sure how to. Any help, please?
You add project by rightclicking in you solution and adding the solution file of the iap mock library. Using the dev account you have to create a beta in upload a product list. But basicly step by step follow http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj681689(v=vs.105).aspx

LibSpotify and Windows Store App

I'd like to start work on a Windows Store App client for Spotify, using LibSpotify. However, it seems that I'm unable to use the libspotify dll from inside a Metro app, presumably because it uses parts of the win32 api that are off-limits to the Metro Sandbox.
Loading in my own simple test dll using LoadPackagedLibrary works ok, but loading in libspotify gives error 1114 - ERROR_DLL_INIT_FAILED.
Is there any hope for me?
Thanks
Tom
If you are trying to create a Metro-Style-App - you have no hope until Spotify releases an updated library or someone reverse engineers their library to make it work in WinRT.
If you want to create a Metro style app that is not WinRT - based - there are WPF libraries that let you theme your application to look Metro, but you won't be able to sell it in Windows Store unless you work for Spotify and get into a deal with Microsoft.
You can only use the WinRT library in Windows 8 Metro Apps, not Win32.

Creating HTML5-based apps for the Mac App Store

The new Tweetdeck for the Mac is supposedly HTML5-based:
http://www.cultofmac.com/134237/tweetdeck-releases-html5-based-app-in-the-mac-app-store/
Anyone know how to build a HTML5 app for the Mac App Store like this? I can't find any documentation on it.
My guess is they do something similar to what PhoneGap does - add a webview in an XCode project. Webviews are basically embedded browsers that can run html5 and javascript. Then, they code their pages in html5 and can call their dataservices via ajax.
Here is actually a tutorial on how to add your html5 code to a webview in xcode: http://www.lostdecadegames.com/how-to-embed-html5-into-a-native-mac-osx-app/
Check out this http://www.tidesdk.org/ build apps with html5
Today you have some great tools made to build Mac OS X applications with HTML5/CSS3 and JavaScript. Like Sentenza Desktop : http://codecanyon.net/item/sentenza-desktop-for-mac/4070984
http://nwjs.io/
NW.js lets you call all Node.js modules directly from DOM and enables a new way of writing applications with all Web technologies. It was previously known as "node-webkit" project.