Windows 8.1 Facebook App Events - windows-phone-8.1

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.

Related

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

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

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!

Programmatically communicate with Windows 8 Music Player

I would like to know if it is possible to programmatically communicate with the default Windows 8 Music Player (Windows store app).
For example, when is it start/finish playing a new song, what is the name of the song etc.
I vaguely have an impression that WinRT app are based on COM/DCOM, so I suspect there maybe a way to expose that to be consume by external program. Is my assumption correct?
Windows store apps are "sandboxed" apps. You can't communicate with other WinRT apps. So you can't access what's being played in Music app of Windows 8 app.
The only way a windows app can communicate with it's host environment is through what is called Activation Protocol which basically opens another app. So metro media players can't provide info about what they are doing to other apps.
Also a metro app can ask a file to be opened by default handler of host system.
So the answer is no. There can't be a way for the media player to inform other apps about it's status.
Windows metro Apps are more similar to a Silverlight app than a COM/DCOM component.

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.