Hi, I am trying to authorise with FinanceKit, but getting "Process is not entitled" error,
func requestForFinanceDataAuthorizations() async {
let store = FinanceStore.shared
guard FinanceStore.isDataAvailable(.financialData) else {
// No meaningful action can be performed
return
}
do {
let authStatus = try await store.requestAuthorization()
guard authStatus == .authorized else {
// User did not grant access to financial data, stop here
return
}
} catch {
print(error)
}
}
can you please help me what I am doing wrong?
Hi @rathoddixit,
FinanceKit requires a special entitlement to be available on iOS and iPadOS. Please see the documentation below for more information:
Important
To access someone’s financial data, you must meet the criteria outlined in Get started with FinanceKit, request the FinanceKit managed entitlement, hold an organization-level Apple Developer account, be logged in as Account Holder, and include the
NSFinancialDataDescription
string in your Info.plist. Apple reviews each application using defined criteria. If your request meets the criteria, Apple adds the entitlement to your developer account by using managed capabilities. To request access, see the FinanceKit managed entitlement request form. For more information about managed entitlements, see Provisioning with capabilities.
Cheers,
Paris