Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added info for SDK implementation in iOS 13 #564

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,16 @@ SDK Initialization
return YES;
}
```
For iOS 13, put the following code to SceneDelegate.swift file:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нужно учесть тот факт, что Scene API может быть выключено. Такое будет работать только при следующем условии:


```
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
Copy link
Contributor

@0xstragner 0xstragner Jan 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вся документация написана на ObjC и эта часть не исключение, либо добавить код на Swift'е для всех примеров.

if let url = URLContexts.first?.url {
VKSdk.processOpen(url, fromApplication: URLContexts.first?.options.sourceApplication)
}
}
```

Note: if you already have FaceBook SDK added and one of this methods returns `[FBSDKDelegate ...]` you can handle it
```
-(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
Expand Down