Join our chat on the app: Telegram Messenger, https://telegram.me/joinchat/AAK8BAdKmiij41ce8IT33w
Android SDK and sample for native apps integrated with OK.RU
An application registered within OK platform should have:
- Target platform checked (like ANDROID or IOS)
- EXTERNAL platform checked
- Client OAUTH checkbox checked
- A VALUABLE_ACCESS permission being checked or requested
- (recommended) LONG_ACCESS_TOKEN permission requested from api-support in order to be able to use tokens with long ttl
- A redirect url configured in application settings including okauth://ok12345 where 12345 is your application id on OK platform
A quick-start with login and viral widgets is available in example
Note that you should also register a schema okauth://ok23346346 within your manifest where 23346346 is application id in order to native sso login to work properly.
- Method sdk.getInstallSource does not return correct value.
- Probably you have not bundled your application with com.google.android.gms:play-services-ads library that is required to get advertising id that is used to track application installation.