I cloned https://github.com/plaid/plaid-link-ios plaid's IOS sample swift app and followed the instructions for Plaid node to get a Generated token. https://plaid.com/docs/quickstart/
I put my token in the swift app linkToken variable in the func presentPlaidLinkUsingLinkToken() but when I run the app and click on the plaid link I'm presented with this error:
2020-11-30 18:03:07.629202-0600 LinkDemo-Swift[1378:41715] [] nw_protocol_get_quic_image_block_invoke dlopen libquic failed 2020-11-30 18:03:08.771021-0600 LinkDemo-Swift[1378:41497] WF: === Starting WebFilter logging for process LinkDemo-Swift 2020-11-30 18:03:08.771106-0600 LinkDemo-Swift[1378:41497] WF: _userSettingsForUser : (null) 2020-11-30 18:03:08.771167-0600 LinkDemo-Swift[1378:41497] WF: _WebFilterIsActive returning: NO 2020-11-30 18:03:08.997682-0600 LinkDemo-Swift[1378:41497] Unbalanced calls to begin/end appearance transitions for <LinkKit.InProcessWebviewFallbackController: 0x13fe30a70>. exit with ExitError(errorCode: LinkKit.ExitErrorCode.invalidRequest(INVALID_FIELD), errorMessage: "link_token must be properly formatted, non-empty string", displayMessage: Optional(""), errorJSON: nil) ExitMetadata(status: Optional(requires_credentials), institution: Optional(LinkKit.Institution(id: "", name: "")), linkSessionID: Optional(""), requestID: Optional("FzibHWAqJqtTG3e"), metadataJSON: nil) 2020-11-30 18:03:40.762780-0600 LinkDemo-Swift[1378:41497] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service 2020-11-30 18:03:40.768987-0600 LinkDemo-Swift[1378:41497] Could not signal service com.apple.WebKit.Networking: 113: Could not find specified service
My token is in the right format I'm sure, I'm not sure what I'm doing wrong.
Please help,
Thanks
Following the steps below I was able to build and run the LinkDemo-Swift app in iOS Simulator (iPhone 12 mini iOS 14.2) and link an account using the sandbox test credentials.
To ensure there are no mismatches in the environment the following commands show which setup I have used:
Additionally I have the following Plaid quickstart related environment variables set (values redacted):
To generate a link token I ran the node quickstart in Docker
and also ran the node quickstart locally using nvm (not at the same time as both bind to localhost:8000):
I used curl to generate a new link token from the node quickstart as follows:
With the generated link token in the pasteboard I've replaced the
<#GENERATED_LINK_TOKEN#>
placeholder in the source code with the actual token:I made sure that the sample app is properly configured to use the link token flow:
With no further changes to the project and the LinkDemo Xcode workspace open
I was able to "Build and Run (
⌘ R
)" theLinkDemo-Swift
scheme in the iOS Simulator iPhone 12 mini (iOS 14.2 (18B79)) and successfully link an account using the sandbox test credentialsuser_good
pass_good
.If the issue you are seeing persists I recommend to reach out to the official Plaid support (http://dashboard.plaid.com/support/new) providing detailed and exact steps on how the link token was created and which changes to the sample application were made.