Hi,
I'm trying to implement IOS auto-fill feature and
I followed the documentation - enable autofill and shared we credentials setup.
But before going to production, I need to test it in the development environment where the web is behind VPN.
Here is my setup:
development server https://dev.mydomain.com behind VPN
verified thatapple-app-site-specification is reachable in path https://dev.mydomain.com/.well-known/apple-app-site-specification (connected to VPN)
apple-app-site-specification content
"webcredentials": {
"apps": [
"appteamid.com.mybundle.id",
"appteamid.com.mybundle.id.dev"
]
}
}
Xcode associated domains
webcredentials:dev.mydomain.com?mode=development
ipa signed by our development profile (verified can be installed on developer device)
ipa distributed via private repo sharing (not Testflight)
and it's not working :(.
questions:
does it have to be distributed by Testflight?
if it could be distributed by private repo should it there be appteamid.com.mybundle.id or should be com.mybundle.id (without appteamid)
does the domain have to be publicly available (could it be the problem that this is behind VPN)?
any other suggestions why it is not working?
thanks for any info
Post
Replies
Boosts
Views
Activity
What is the correct way how to get the renewalDate for subscription?
In documentation for Product.SubscriptionInfo.RenewalInfo is defined renewalDate, but in code there is no such property available.
Only serialisation to json mention this field.
if let item = try await products[sku]?.subscription?.status.first {
if let verificationResult = item.renewalInfo as? VerificationResult<Product.SubscriptionInfo.RenewalInfo> {
let renewalInfo = try verificationResult.payloadValue
print(renewalInfo.jsonRepresentation)
print(renewalInfo)
}
}
output:
{
"originalTransactionId":"2000000425656293",
"autoRenewProductId":"product_A",
"productId":"product_B",
"autoRenewStatus":1,
"deviceVerification":"1234dummy",
"deviceVerificationNonce":"00aecdummy",
"signedDate":1696340799858,
"environment":"Sandbox",
"recentSubscriptionStartDate":1696335733000,
"renewalDate":1696341133000
}
But for
let renewalInfo = try verificationResult.payloadValue
print(renewalInfo.renewalDate)
the error is Value of type 'Product.SubscriptionInfo.RenewalInfo' has no member 'renewalDate'.
context: XCode 14.2, Storekit2, iOS 15+
PS: Also there are other super confusing thing: autoRenewPreference is in the jsonRepresentation as autoRenewProductId.