In app purchase windows phone 8.1 store app - c#

I have simple issue in my windows phone 8.1 RT app. I have implemented in app purchase in my app. It works normally, If I do in app purchase while BackgroundAudioPlayer is running, then after opening store CONFIRM PURCHASE page app crashes after 5-6 seconds sometimes after 10 secs.
Note: I am able to reproduce this issue in standard BackgroundAudioSample
Uploaded in OneDrive
Let me know if any one have come across this situations.
Thanks

Related

How to test real Windows Store 8.1 in-app purchases with CurrentApp?

I have an universal windows app (Windows Store 8.1 & Windows Phone 8.1, NOT UWP!), published it (both Win and WP packages) as hidden (Hide this app in the Store. Customers with a direct link to the app’s listing can still download it, except on Windows 8 and Windows 8.1) but it looks like that people can access app from Windows Phone 8.1, Windows 10, but not from Windows 8.1.
Indeed, on Windows Phone 8.1 (even on simulator) I can debug "real" in-app purchases using CurrentApp instead of CurrentAppSimulator, and even can download app using direct link.
But when I try to use in-app in Windows Store version it doesn't work: Windows.ApplicationModel.Store.CurrentApp.LoadListingInformationAsync() throws Exception HRESULT: 0x801900CC ("no content").
I've read this topic but in my case all the packages are published, so Store knows about my in-app products!
In case with WP8.1 I had to add:
<mp:PhoneIdentity PhoneProductId="my old-style app id" PhonePublisherId="my publisher id" />
into the app manifest.
Maybe there is something similar for Win Store 8.1 apps? Is there a way to test real in-apps on Windows 8.1 before making app available for all?
when I try to use in-app in Windows Store version it doesn't work: Windows.ApplicationModel.Store.CurrentApp.LoadListingInformationAsync() throws Exception HRESULT: 0x801900CC ("no content").
About your first problem, we can see that the Store server is not aware of your app having the In-app purchase that you purchase. As your description, you confirm that your app has been submitted in the store and got it approved, but can you check the In-app-purchases products in your app are approved? you can get these info from the dashboard---Add-ons.
Is there a way to test real in-apps on Windows 8.1 before making app available for all?
According to the Beta testing and targeted distribution, there's no specific option for Windows 8.1 beta testing currently. But you can also download your app on Windows 10 device to test if your IAP product without problem. If it can work well, then you can make it available to all users. This seems to the only work-around.
Please also note that it will take 1-2 days after that for IAP feature from real products to start serving.

Show Windows Phone app demo to client

I'm developing a windows phone 8.1 app for a client. I need to show a demo to the client but without uploading to the Store. One way to show the demo is by recording a video using screen recorders. Is there any other way that can be used to do the same.
PS The client is not in my city. And he doesn't have a windows phone.
Any help will be appreciated.
Thank You.
I think you can send him the xap file,which can be run on a Windows Phone or a Windows Phone Emulator. So to run it on the emulator or the phone you need the Application Deployment Tool. You can download the tool from here https://www.microsoft.com/en-us/download/details.aspx?id=13890

Windows Phone - Rate & Review Command

I have a Windows Phone 8.1 Silverlight app. On WP8.1 when getting the user to rate/review my app I use the following command:
new MarketplaceReviewTask().Show();
This takes the user to the rate/review option for my app on the Windows Store app. However, this command does not work on WP10 - it just hangs, then eventually goes to the main entry point for the store. Now I also have this app on PC as a Windows 8.1 RT app. Here I use a different command:
await Launcher.LaunchUriAsync(new Uri("ms-windows-store:REVIEW?PFN=Microsoft.CityArtSearch_8wekyb3d8bbwe"));
I can use this command on my phone app and it works fine on WP10. However, on WP8.1 it opens the Xbox Music App for some reason. Does anyone know of a way to to use the second command successfully on WP8.1? Is there now a different URI?
When you are using Windows Phone 8.1 non silverlight the following code will work
await Launcher.LaunchUriAsync(new Uri(string.Format("ms-windows-store:reviewapp?appid={0}", appID)));
Now, what is appID? I took me a while to figure this out. It's not something you find in the package manifest file (at least for me).
To get your specific appID, log into your Windows Dev Account, go to Dashboard, navigate to your app, then go to App Management and App Identity. At the bottom you can see a URL for Windows Phone 8.1 and earlier with an appID part. This is your appID for the launcher command.
This works for me on WinRT 8.1. But I have no idea how to get this appID if your app isn't uploaded to the Windows Dev Center yet. According to the certification rules of Microsoft it shouldn't be possible to get your app certified if there is no possibility to review it from inside the app as far as I remember. But at least in my situation they weren't that careful when certifying my app :)
However this solution does probably not solve your issue with the OS version check.
You could try the following syntax:
await Launcher.LaunchUriAsync(new Uri("ms-windows-store:reviewapp?appid=" + appid));
Where appid is the Package name (PhoneProductId) from the Package.appxmanifest.

Convert Universal app to Windows Phone app only

I am developing an Universal app capable of running on both Windows Phone and Windows. But initially I want it to be available to phones only because I have not made the Windows part of it. So how can I limit the target devices of this Universal app without creating a new app and without removing the Windows Code from it. I want it to be available to phones only for deployment. Can anybody give a solution?
Windows and Windows Phone apps are submitted separately to the Store. The process for submitting Windows apps is outlined here and for Phone here. So you can simply submit one without the other.
You can also stop building the Windows portion of the app using the Configuration Manager if you want to (to save time or avoid compilation errors you don't want to fix yet).

Reminders in Windows Phone Silverlight 8.1

Reminders in my app, Muslim Prayers works great on Windows Phone 8 and whenever a user taps on any reminder, it simply launches the app.
I have updated my phone to Windows Phone 8.1 and the same app works fine.
However, after re-targeting my app to Windows Phone Silverlight 8.1; the reminders do not launch an app upon tapping on it.
I want to know is this a known bug or am I missing something?
Thanks

Categories

Resources