Closed weberlisper closed 3 years ago
Hi @weberlisper !
I'm sorry for the issue you've faced with!
Please check the clientId, clientSecret and redirect URL in OAuth configuration on Crowdin.
Redirect URL should match your App scheme. For example, for <data android:scheme="crowdintest" />
redirect URL in Crowdin should be crowdintest://
Also, if you are using crowdin.com, not Crowdin Enterprise, organization_name in the SDK config should be null
.
If after that, it still won't work, please provide the next details:
I personally have assumption that the root is a redirect URL (it should be crowdintest://
) or you may try as on my screenshot:
I personally have assumption that the root is a redirect URL (it should be
crowdintest://
) or you may try as on my screenshot:
This is my redictURL: And I copy crowdintest:// in SceneDelegate.swift file, but got error:
I personally have assumption that the root is a redirect URL (it should be
crowdintest://
) or you may try as on my screenshot:
I try your screenshot, but failed:
@denisqua Hello
Let's go answer by answer:
According to that one, seems it isn't necessary to have crowdintest:// in the SceneDelegate.swift file: https://github.com/crowdin/mobile-sdk-ios/blob/master/Example/AppleReminders/SceneDelegate.swift
So I kindly ask to remove it from the SceneDelegate.swift file (and do everything according to the documentation)
Between first and second URLs I have coma, you put dot :)
but anyway, seems it's needed only crowdintest://
If after removing callback from the config file and setting up URL Scheme inside info.plist file it won't work, I kindly ask you:
Let's go answer by answer:
- >And I copy crowdintest:// in SceneDelegate.swift file, but got error:
According to that one, seems it isn't necessary to have crowdintest:// in the SceneDelegate.swift file: https://github.com/crowdin/mobile-sdk-ios/blob/master/Example/AppleReminders/SceneDelegate.swift
So I kindly ask to remove it from the SceneDelegate.swift file (and do everything according to the documentation)
- >I try your screenshot, but failed:
Between first and second URLs I have coma, you put dot :)
but anyway, seems it's needed only crowdintest://
- Please, let me know whether you've added URL Scheme into Info.plist file: https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app
If after removing callback from the config file and setting up URL Scheme inside info.plist file it won't work, I kindly ask you:
- record short video with all steps to reproduce (it helps to investigate the root of the issue)
- share your full SceneDelegate.swift file (I see screenshot, but I'm not sure whether it's full, sensitive data could be hidden, of course)
- project URL
Thank you very much. It works!
@weberlisper you're welcome as always!
I create a project in crowdin, and replace distributionHash, sourceLanguage, clientId, clientSecret in SceneDelegate.swift file. After I run the Example, and click "Log in" but authorize failed. the status code is 401, and the error message is "Client authentication failed". I use the same configuration in android sample, but success.