@@ -5,7 +5,7 @@ StudyplusSDK-V2 is [Studyplus iOS SDK](https://github.com/studyplus/Studyplus-iO
55
66## Requirements
77
8- * iOS 8 .0 or above
8+ * iOS 9 .0 or above
99 * Swift 4.0 or above
1010
1111## Dependency
@@ -33,17 +33,17 @@ github "studyplus/Studyplus-iOS-SDK-V2"
3333
3434- If you don't have consumerKey and consumerSecret, please contact https://info.studyplus.co.jp/contact/studyplus-api
3535
36- ### Set up custom URL scheme
36+ ### ① Set up custom URL scheme
3737
3838- set __ studyplus-* {your consumer key}* __ to URL Types. (ex. studyplus-MIoh79q7pfMbTUVA3BNsSeTaZRcOK3yg )
3939
4040![ xcode] ( https://github.com/studyplus/Studyplus-iOS-SDK-V2/blob/master/docs/set_url_scheme.png )
4141
42- ### Set up consumerKey and consumerSecret
42+ ### ② Set up consumerKey and consumerSecret
4343
4444- set __ consumerKey__ and __ consumerSecret__ in your Info.plist.
4545
46- ``` plist
46+ ```
4747<key>StudyplusSDK</key>
4848<dict>
4949 <key>consumerKey</key>
@@ -53,6 +53,17 @@ github "studyplus/Studyplus-iOS-SDK-V2"
5353</dict>
5454```
5555
56+ ### ③ Set up LSApplicationQueriesSchemes
57+
58+ - Set LSApplicationQueriesSchemes in your info.plist for checking if studyplus is installed.
59+
60+ ```
61+ <key>LSApplicationQueriesSchemes</key>
62+ <array>
63+ <string>studyplus</string>
64+ </array>
65+ ```
66+
5667### Initialize
5768
5869``` Swift
@@ -79,16 +90,6 @@ import StudyplusSDK_V2
7990
8091class AppDelegate : UIResponder , UIApplicationDelegate {
8192
82- // ...
83-
84- // MARK: - iOS8
85-
86- func application (_ application : UIApplication, open url : URL, sourceApplication : String ? , annotation : Any ) -> Bool {
87- return Studyplus.shared .handle (appDelegateUrl : url)
88- }
89-
90- // MARK: - iOS9 or above
91-
9293 func application (_ app : UIApplication, open url : URL, options : [UIApplicationOpenURLOptionsKey : Any ] = [: ]) -> Bool {
9394 return Studyplus.shared .handle (appDelegateUrl : url)
9495 }
0 commit comments