I submitted a feedback about this, FB8900814, but thought i'd ask here. It seems that purchase revocation / cancelling is broken in storekit test in xcode 12.2. Code runs fine in 12.1.
Steps to reproduce: Subscribe
Cancel transaction / revoke
Revocation callback not triggered
Receipt still says we're subscribed.
Anyone else noticing this?
Post not yet marked as solved
I'm trying to use xcode 12 beta 2/3 to test my in app purchases using store kit testing, by following the instructions here:
https://developer.apple.com/documentation/xcode/setting_up_storekit_testing_in_xcode
The link says "StoreKit testing in Xcode generates locally signed receipts that your app must validate locally. "
Does anyone have a working example of how to validate one of those receipts? I'm having trouble parsing the ASN.1 bit, and the same code works no problem with production receipts. I'm aware of the different cert, haven't even got to the part of using it.
Thank you
Post not yet marked as solved
Hi,iOS 13 maps ship with a new view that includes an Apple logo that appears in the botton left. The inspector tells me that the view is called MKAppleLogoImageView. Is there any chance to allow for configuring where this appears? I've got some UI elements that partially hide it and that looks pretty poor.Thanks!
I'm running iOS 12 and am following these instructions:https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/LocationAwarenessPG/ProvidingDirections/ProvidingDirections.htmlto the letter. I cannot get my app to be recommended by the Apple Maps app at all - in fact I don't see any apps being recommended. Is this up to date? If not this, what else does the 'Maps' capability in Xcode do?Thank you?
Post not yet marked as solved
Hi,I'm updating my in app purchase promotion visibility by calling the update function of the controller - It seems to complete succesfully (no error is returned) but all purchases appear to be promoted to all clients. Does the visibility update method of SKProductStorePromotionController work for anyone? Did you have to do anything special to enable it?Thank you
Post not yet marked as solved
Hi,I'm trying to use the new in app purchace promotion apis - in particular the visibility ones. Though this is something I can't replicate locally, I am consistently getting crash reports. See end of message. I can't figure out what they mean or what they are happening. when my app starts up, I fetch all product types and update their visibiity accordingly. Everything is stored with a strong reference. Here's an example of the code (using swiftystorekit):SwiftyStoreKit.retrieveProductsInfo(Set(productIdsToFormattedPrice.keys)) { [weak self] result in for product in result.retrievedProducts {if (self?.settings.isAppleWatchUpgraded() ?? false) { self?.storePromotions?.hide(product: product)} else { self?.storePromotions?.promote(product: product)}}storePromotions is a strong wrapper over SKProductStorePromotionController, which it accesses with SKProductStorePromotionController.default()Does anyone have an idea of what this is?Thank youException Type: EXC_BAD_ACCESS (SIGSEGV)Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000010VM Region Info: 0x10 is not in any region. Bytes before following region: 4296556528 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START---> __TEXT 0000000100184000-0000000100188000 [ 16K] r-x/r-x SM=COW ...pp/CycleMaps]Termination Signal: Segmentation fault: 11Termination Reason: Namespace SIGNAL, Code 0xbTerminating Process: exc handler [0]Triggered by Thread: 2Thread 2 name:Thread 2 Crashed:0 StoreKit 0x0000000197968598 __97-[SKProductStorePromotionController updateStorePromotionVisibility:forProduct:completionHandler:]_block_invoke + 220 (SKProductStorePromotionController.m:83)1 StoreKit 0x000000019795d1e4 __50-[SKPromotedIAPSetVisibilityRequest _handleReply:]_block_invoke + 56 (SKPromotedIAPSetVisibilityRequest.m:54)2 StoreKit 0x000000019795d1e4 __50-[SKPromotedIAPSetVisibilityRequest _handleReply:]_block_invoke + 56 (SKPromotedIAPSetVisibilityRequest.m:54)3 libdispatch.dylib 0x0000000183fe1088 _dispatch_call_block_and_release + 24 (init.c:994)