Getting ANID2 in Windows Phone 8.1 - windows-phone-8

I used this method in WP8 to get the user property :
object userHashId;
UserExtendedProperties.TryGetValue("ANID2", out userHashId);
_userId = userHashId.ToString();
msdn link
But I cannot find these in Windows Phone 8.1. Are there any new API for this
, or any alternative.

AFAIK it isn't possible under WinRT apps - the link you have provided stays for WP8.1 Silverlight Apps - then I suspect you are trying to develop under WinRT - API Reference.
You can read more from here, also here at SO and at this article.
Following this answer, maybe the code below will help you:
HardwareToken myToken = HardwareIdentification.GetPackageSpecificToken(null);
IBuffer hardwareId = myToken.Id;
There is also a Guidance on using the App Specific Hardware ID (ASHWID) to implement per-device app logic.

Related

Is there a faster way to find contacts than Store.FindContactsAsync()?

This is my code
var Store= await ContactManager.RequestStoreAsync();
var Contacts = await Store.FindContactsAsync();
But that is too slow. Therefor, please tell me the way better.
Thank you.
Basically not at the moment other than recoding the application using Silverlight instead of XAML/RT projects.
If only you could specify the desired fields to return or specify a condition the contact should meet, like having a Phone Number entered, that would be great.
Those examples I mentioned are possible to apply on the app Contact Store, but not from the main phone agenda.
I found the same problem:
WP SilverLight 8.1 vs WP 8.1 (XAML) pros and cons
PD: Create a SilverLight app with the code to get all the contacts using the Silverlight API and you can easily see the difference.
Baically seems XAML Contact API is 2.5x~3x slower than the Silverlight Contact API

login to facebook using fb API in Windows Phone 8.1

I am stuck in using facebook API in WindowsPhone8.1, i am unable to create a login button and authenticate user in WP8.1, and i couldnt search relative material on google too, even though i have done the same task in Windows 8.1 and Windows Phone 8 but not in Windows phone 8.1
here is my code that i have used for login process
App.fb.session = await App.fb.sessionclient.LoginAsync("user_about_me,read_stream,publish_action");
App.fb.AccessToken = App.fb.session.AccessToken;
App.fb.FacebookID = App.fb.session.FacebookId;
App.fb.expires = App.fb.session.Expires;
but i give "No Implemented" Exception
Thanks in advance
I'm not very sure about whether the WP8.1 has integrated the Facebook Authentication. As mentioned here it's still not.

Is possible to know which apps were installed to the device?

I'm writing an app, it can list all apps in user device, is there have a way to know which apps were installed to the phone via wp8.1 public API currently? Can I get the app list?
I believe those two answers: first and second are still actual.
Looking here at MSDN, PackageManager class is available only for desktop applications, not phone:
Minimum supported phone - None supported
Thought for Enterprise Deployment you can use on Phone InstallationManager.FindPackagesForCurrentPublisher method - as written in first reference.

How to get info about an app in the Windows Phone Store API?

Is there a way to get the following data from the windows phone store without having to parse whole HTML page (I got the app ID)?
- Name
- Description
- Access the search (and return only App IDs so I can get what I need for the search reults)
I already found this question regarding zune, but that seems to be discontinued, if I'm rigjt. Is there soemthing similar for Windows Phone 8?
you can show the details of the by using MarketplaceDetailTask from Microsoft.Phone.Tasks
here the links , which explains how to show the details page of a app from store.
1)How to use the Marketplace detail task for Windows Phone 8
2)http://www.geekchamp.com/tips/how-to-use-the-marketplace-tasks-in-windows-phone-8
Hope this helps.
Thank you.

Office 365 / Exchange API for windows phone 8/8.1 development project

I am working on a Windows Phone development project (wp8/wp8.1) and need to grab the user's Exchange/Office 365 calendar information. My quick research found the EWS API and Office 365 API preview cannot be used in Windows Phone projects.
Does anyone know any approach/API that I can use to make the oAuth authentication and data retrieving code easier?
Thank you.
Depending on what you're trying to do, you can either use the calendar object directly which can read info from the phone calendars : http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh286421(v=vs.105).aspx this works, but you don't have any access to attachments for example and there's few others limitations.
Or if you target 8.1 : http://www.cloudidentity.com/blog/2014/04/16/calling-office365-api-from-a-windows-phone-8-1-app/
Or you can use the Exchange Web Services in SOAP or POX like you would do if developing for another platform. I can't post the link, but the reference is on the msdn.
Good luck with exchange development, it's quite a nightmare :)