Last updated:
0 purchases
okru oauth
okru_oauth #
okru auth library
Getting Started #
Android setup #
add
<activity
android:name="ru.ok.android.sdk.OkAuthActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="ok{* Your OK app id here *}"
android:scheme="okauth"/>
</intent-filter>
</activity>
copied to clipboard
to Manifest
IOs setup #
add
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
copied to clipboard
to Info.plist
also add
<string>ok{* Your OK app id here *}</string>
copied to clipboard
to list of supported urls schemes in info.plist
then add
import okru_oauth
copied to clipboard
to top of appdelegate file
and
override func application(_ app: UIApplication,
open url: URL,
options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
OKSDK.open(url)
return true
}
copied to clipboard
inside AppDelegate class in same file
Example #
to use example, you need to replace app id and app key inside both native parts(manifest and plist) and main.dart of example
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.