Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I'm not able to get my ANID?

I have added to WMAppManifest.xml:

  • <Capability Name="ID_CAP_IDENTITY_DEVICE" />
  • <Capability Name="ID_CAP_IDENTITY_USER" />

So why do I keep getting empty strings from:

        public static string GetWindowsLiveAnonymousID()
        {
            int ANIDLength = 32;
            int ANIDOffset = 2;

            string result = string.Empty;
            object anid;
            if (UserExtendedProperties.TryGetValue("ANID", out anid))
            {
                if (anid != null && anid.ToString().Length >= (ANIDLength + ANIDOffset))
                {
                    result = anid.ToString().Substring(ANIDOffset, ANIDLength);
                }
            }

            return result;
        }

It does not seem to handle that TryGetValue very well... Someone got a clue?

like image 640
Jason94 Avatar asked Dec 20 '12 13:12

Jason94


People also ask

What if my trace Together app is not working?

If your worker's mobile phone is unable to download and activate TraceTogether, it is likely because the phone's operating system (OS) does not support the functionalities needed for the app to work.

How long does it take to get a booster on the NHS app?

The NHS App has only just been updated to display a 3rd or booster dose. Your medical record will be updated with this information but may take a few weeks to show on the App.

What is an ANID number?

An Ariba Network Identification (ANID) number is a unique identifier of an Ariba Network account. Suppliers may maintain multiple ANIDs for various reasons.

How do I check my immunization status on TraceTogether?

¹ Where to see these screens: Open TraceTogether App > Tap on the Vaccination status card on the app's home screen. ² The effective date shown in your TraceTogether App indicates when your primary vaccination series came into effect.


2 Answers

It's called ANID2 in Windows Phone 8.

The UserExtendedProperties API exposes two properties: ANID and ANID2.

  • ANID can only be accessed from Windows Phone OS 7.0 and Windows Phone OS 7.1 apps that use the Microsoft Advertising SDK for Windows Phone.

  • ANID2 can only be accessed from Windows Phone 8 apps.

like image 61
robertk Avatar answered Nov 06 '22 02:11

robertk


use instead for Win Phone 8 apps

string anid = UserExtendedProperties.GetValue("ANID2") as string;

Also make sure those are checked from the WMAppManifest

<Capability Name="ID_CAP_IDENTITY_DEVICE" />
<Capability Name="ID_CAP_IDENTITY_USER" />
like image 23
Mnhy Avatar answered Nov 06 '22 01:11

Mnhy