Skip to content

Commit

Permalink
Update InAppPurchase.m
Browse files Browse the repository at this point in the history
  • Loading branch information
joey91133 committed Dec 11, 2015
1 parent 58436eb commit 44e27be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ios/InAppPurchase.m
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,11 @@ - (void)paymentQueue:(SKPaymentQueue*)queue updatedTransactions:(NSArray*)transa
// DLog(@"js: %@", js);
[self.commandDelegate evalJs:js];

if (downloads && [downloads count] > 0) {
if (canFinish){
[[SKPaymentQueue defaultQueue] finishTransaction:transaction];
}

if (downloads && downloads.count) {
[[SKPaymentQueue defaultQueue] startDownloads:downloads];
}
else if (g_autoFinishEnabled && canFinish) {
Expand Down

1 comment on commit 44e27be

@akrishnayadav
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We used latest Cordova Purchase plugin 4.0.0. And Now.
After the Inapp purchase through testflight using internal tester,

And if you loose the focus from the app (back to home page/ open any other app )

Then it is asking for the credentials to "Sign In to iTunes Store" only for one time.
after providing the credentials once,
Then it is not asking for the credentials continuously for that InApp purchase . (This is little better. )

Is there any better solution than this ?

Please sign in to comment.