0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-31 22:51:25 -05:00

docs(connector-wechat-native): add linker flags figure

This commit is contained in:
Gao Sun 2022-06-28 14:42:26 +08:00
parent 64916e340e
commit 2a11cf3e55
No known key found for this signature in database
GPG key ID: 13EBE123E4773688
2 changed files with 10 additions and 4 deletions

View file

@ -2,7 +2,7 @@
The official Logto connector for WeChat social sign-in in native apps (iOS and Android).
微信原生应用社交登录官方 Logto 连接器iOS 和 Android[中文文档](#zh-CN)
微信原生应用社交登录官方 Logto 连接器iOS 和 Android[中文文档](#微信原生连接器)
## Get started
@ -75,7 +75,7 @@ After passing the review, go to the application details page and generate an App
{
"appId": "wx123456789",
"appSecret": "some-random-string",
"universalLink": "https://your.domain/path/" // The universal link to your app
"universalLink": "https://your.universal.link/path/"
}
```
@ -89,7 +89,9 @@ Add the framework:
<img src="./docs/add-framework.png" alt="Add framework" width="500px" />
And add `-ObjC` to your build settings:
And add `-ObjC` to your Build Settings > Linking > Other Linker Flags:
<img src="./docs/linker-flags.png" alt="Linker flags" width="500px" />
**2. Add the plugin to your `LogtoClient` init options**
@ -102,6 +104,10 @@ let logtoClient = LogtoClient(
**3. Handle `onOpenURL` properly**
:::info
The function `LogtoClient.handle(url:)` will handle all the native connectors you enabled. You only need to call it once.
:::
```swift
// SwiftUI
YourRootView()
@ -123,6 +129,6 @@ After WeChat native connector is enabled, you can build and run your app to see
WeChat doesn't have a plan for those devices without the WeChat app installed. Logto will hide this connector during sign-in if so (which is the recommended way from the [official development guide](https://developers.weixin.qq.com/doc/oplatform/en/Mobile_App/WeChat_Login/Development_Guide.html)).
:::
# 微信原生连接器 {#zh-CN}
# 微信原生连接器
TBD

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB