How to develop background task in windows phone runtime app 8.1 when app is closed? - windows-phone-8

I want to develop background task when app is closed.I searched on google but I am not getting any proper answer.I am developing windows phone runtime app,not silver light.please help me..

you can develop now - UWP apps
learn UWP - https://developer.microsoft.com/en-us/windows/develop
Windows 8 development -https://msdn.microsoft.com/library/windows/apps/xaml/mt244353.aspx
Support your app with background tasks- https://msdn.microsoft.com/en-us/windows/uwp/launch-resume/support-your-app-with-background-tasks
Get started with Windows apps - https://developer.microsoft.com/en-us/windows/getstarted

Creating background Task is easy.
You can go through this link
https://msdn.microsoft.com/en-us/windows/uwp/launch-resume/create-and-register-a-background-task

Related

Windows 8.1 Facebook App Events

I'm writing a Windows 8.1 universal App (WinRT).
I need to integrate with Facebook to track App Events.
I made the same thing in an Android App using the AppEventsLogger.
I added the "Facebook SDK for .NET" to my project using NuGet, but I cannot find any way to track the App Events (like activateApp, deactivateApp, logEvent)
Are these functionalities I need included in the SDK I'm using?
Can I track these events in any other way in a WinRT Application?
Thank you all.

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.

App targeting only Windows Phone

I am developing an app using Visual Studio Express 2013. I selected a blank application(Universal) template and there is no blank template available specific to phone.
Doing so has created an app with 2 c# classes targeting to both phone and desktop.
How can I create an app which I want to target only for windows phone. Will deleting one of the class from the project solve the purpose?
I think You should select windows phone Apps Template if you are going for only windows phone app.
If you're targeting only WindowsPhone, then you should be going with the Silverlight app for WP or the normal WinRT apps for WP.
Universal app is where it targets both the WP and the Store apps.
Hope it helps!

WP8 sockets in background

I am working on VOIP app. I am using VOIP API. The issue which i am facing is whenever app goes in background all my sockets like SIPSocket and RTPSocket is getting closed. It seems some how i can keep those sockets open while my app goes to background.Let me know if anyone have done to solve this.
I guess you're using the VoIP app from a InProc WinRT component? You need to use it OutProc, or it won't run in the background.
See VoIP apps for Windows Phone 8 and our ChatterBox VoIP sample
The ChatterBox sample also have the necessary tooling for registering OutProc interfaces with your managed app.

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.