저는 메인 앱에 많은 데이터를 전달하는 위젯 (오늘 확장 기능)을 개발하려고합니다.iOs - 위젯 (오늘 확장 프로그램)의 데이터를 URL과 함께 앱에 전달하는 방법은 무엇입니까?
나는이의 Info.plist
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>TodayWidget</string>
</array>
<key>CFBundleURLName</key>
<string>xxx.xxx.xxx</string>
</dict>
</array>
에 추가하고이 코드 나는이 값에 액세스 할 수있는 방법을
let url = URL(string:"TodayWidget://?key=value")
self.extensionContext?.open(url!, completionHandler: nil)
과 (성공적으로) 위젯에서 응용 프로그램을 호출? 그 코드는
Pass data between two Apps by url scheme in swift?
감사를 을
를 더 이상 사용되지 않습니다은 또한 이것을보고 있지만, 엑스 코드 나 경고!