Post

Replies

Boosts

Views

Activity

delegate does not respond to method paymentQueue:shouldAddStorePayment:forProduct
Hi,I need use the method paymentQueue:shouldAddStorePayment:forProduct for buy from Appstore. But I open the application with this link, I receive a message in console:Tried to send purchase intent: <productID> to delegate, delegate does not respond to method paymentQueue:shouldAddStorePayment:forProductThis is the link:itms-services://?action=purchaseIntent&bundleId=<bundleID>&productIdentifier=<productID>Docs:https://developer.apple.com/documentation/storekit/in-app_purchase/testing_promoted_in-app_purchaseshttps://developer.apple.com/documentation/storekit/skpaymenttransactionobserver/2877502-paymentqueue?language=objcMy code:AppDelegate.h#import <StoreKit/StoreKit.h> @interface AppDelegate : CDVAppDelegate <SKPaymentTransactionObserver, SKPaymentQueueDelegate> {} @endAppDelegate.m@implementation AppDelegate - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { return [super application:application didFinishLaunchingWithOptions:launchOptions]; } - (BOOL)paymentQueue:(SKPaymentQueue *)queue shouldAddStorePayment:(SKPayment *)payment forProduct:(SKProduct *)product { return true;//Never is executed }Thanks
4
0
2.0k
May ’20