How to open "Add contact" UI on windows phone 8.1 and higher - windows-phone-8.1

when trying to use, "Value does not fall within the expected range" is being thrown on wp8.1. I have added the contacts capability in the app manifest.
Windows.Phone.PersonalInformation.ContactStore.CreateOrOpenAsync(ContactStoreSystemAccessMode.ReadOnly,ContactStoreApplicationAccessMode.ReadOnly)

Related

"Anid2" changed over time on Windows 10 mobile (since version 10166 at least)

I have a app in Windows Phone Store which is target Windows Phone 8.0 platform.Recently, I'm testing my app on Windows 10 mobile so I won't get in trouble when people upgrade to Windows 10 Mobile.
I found a serious problem for me when testing it. My app will get a complete different "ANID2" value some time. I use "ANID2" value to identify my user and they may lost their data temporary and much worse that the user might get data which is not belongs to him/her.
Here is the reproduction steps:
Write a app to fetch "ANID2" and display it. The app project template is : Blan app(Windows Phone SilverLight target Windows Phone 8.0)
Deploy it to a WP8 or WP8.1 device and record the anid2 value.
Now depoly it to another phone running WP10 with the same Microsoft Accout logged in WP8 of course.
See if the anid2 value is different with the value on WP8.
If they are the same. On WP10 , go open the Store to download and install another app which you never installed before with the Microsoft account. Now,reopen the anid2 test app on WP10. you might find the anid2 value changed.
If the anid value first run on WP10 is different from the value on WP8, then you just wait, wait tomorrow or after tomorrow.During you wait ,you shall not install any new app on the WP10 phone. The anid2 value will eventually changed to the value shown on WP8. Now repeat steps introduced in step 5. You might also find the anid2 value changed.
The result is shown below:
Publisher ID: {0707BD2B-5621-4E0C-83DA-E2B0A5E3B850}
Anid2 Last Time : bUyJ5mwgnjm9b4lyBmThbKr/5VFbsCMTNHpgej+nOcs=
Anid2 Now : XJd6gLP8UDaVBdRB8AI/ZOTM0cThXMxp1msQjFuq5WY=

Launch a Windows Phone app with android AAR (NFC)

I have a device with a hard-coded NFC tag that opens an Android app based on an Android Application Record (AAR). Basically it calls an Android app to open with type android.com:pkg and payload com.something.Something.
I have researched on how to launch my Windows Phone app with that existing tag, but in the end I have only found that Windows Phone can launch an app if the NFC tag is adequately programmed to open the Windows Phone app ID or the custom protocol registered in my app. But it is very important that I use the existing NFC tag which opens the Android app ID.
What is curious is that my Windows 10 Mobile detects this existing NFC tag to want to open the app when I touch it with my phone and prompts me if I want to launch an app? But the app with that ID isn't installed so I did a research on how to put this app ID on my Windows Phone app but in the end I only got deployment errors.
Android Application Records (AAR) cannot be used to launch Windows apps. Windows uses a different system to launch apps (Launch Record). The main probem is that Windows uses a different scheme to identify apps (not a Java package name as Android does). Moreover, Windows apps cannot be set to be automatically launched based on the data contained in an AAR, hence, it's not possible to build some custom filter that starts your Windows app based on that AAR.
The workaround that's currently known seems to be what's discussed in Cross platform launch records with extra data on Windows Phone and Android. Though this requires modification of the data structures on the tag side.

Launching windows phone 8 app from webpage

I added a uri association to my WMAppManifest.xml file in my Windows Phone 8 project and I'm able to successfully launch my app from within another app using LaunchUriAsync. I've also registered the same protocol in my Windows 8 project.
// windows phone 8 uri map
<Extensions>
<Protocol Name="myprotocol" NavUriFragment="encodedLaunchUri=%s" TaskID="_default" />
</Extensions>
On Windows 8, I am able to launch the app with by a simple hyperlink using my given protocol "myprotocol:".
On Windows Phone 8, I tried typing the protocol in the browser location bar, but I get an IE error saying this type of address is not supported. This makes me concerned I won't be able to launch my app from a web page simply by using my app specific protocol in the hyperlink.
Does anybody have any experience with this? Am I just paranoid?
fyi: here's the info on URI Associations in WP8
sometimes the simple answer is often overlooked.
Yes, everything is in place to function correctly. It appears to only be a restriction with IE Mobile.
I set up a web page on my server with a link click me and was able to successfully launch my app view IE Mobile on the emulator.

Application Consent UI issue - Windows Phone Apps

Last Week my team have submitted an application to Windows Phone Marketplace and in the end we got application failed because of the following issue
"LOB App Compliance Requirements - Requirement is App capability consent UI is shown first on first launch of app - Status - Failed. Tester given notes "No app capability consent UI is shown first on first launch of the app". Couldn't able to find out what was the exact error which made Application to fail in Marketplace. Does anyone came across such errors. Any feedback or suggestions will be useful for us.
Regards
When you use a capability, when the user launch application, a pop up should appear for ask user for access.

"Associate app to the store" option does not show on VS 2012

I developed a Windows Phone 8 App. But when I try to add it to the store the option "Associate app to the store" does not show (could not post pics because i´m new here).
The options does not appear when I right click on the project AND it also does not work when I click on the Visual Studio 2012 menu PROJECT > STORE > (the option to associate the app shows as disabled)
Also I tried to add the tag manually on my WMAppManifest.xml file with no avail either. In this particular case, the app wont start in the emulator. It keeps on loading forever.
The current status to my developer account is "need verification" - meaning: I need to wait to the credit card transaction to pop out on my bank to input the secret code. Is that the case? Is that why I cant associate the app and why it does not show on Visual Studio 2012?
That menu is only meant for Windows 8 apps, not Windows Phone 8 apps. You should use http://dev.windowsphone.com for all your windows phone store activities. Again, VS2012 doesn't have any built-in integration with the WP8 store, just the Win8 store.