0
votes

I am adding in app purchase in my windows phone 8.1 store app. I am also using IBackgroundTask for audi.

I want to use in-app purchase, but applications crashes on calling

var result = await CurrentAppSimulator.RequestProductPurchaseAsync(ProProductId);

without any exceptions.

This method is called within try-catch block.

It happens when application already start IBackgroundTask by calling for BackgroundMediaPlayer.Current (happens after few seconds after call RequestProductPurchaseAsync).

If I call RequestProductPurchaseAsync after start app without calling BackgroundMediaPlayer.Current, it works normally.

What is the reason of this behaviour? Are there any ways to solve this problem?

Note: question already posted here with no perfect answer.

1

1 Answers

0
votes

Currently I am shutting down background media player with some delay. Although it is not crashing many times it is not good solution.