telenordigital / connect-ios-sdk

Docs 📒👉
https://telenordigital.github.io/id-docs.telenordigital.com/integrate-ios-sdk.html
Apache License 2.0
9 stars 8 forks source link

Connect WebView Come in after choosing user permission "Allow" #20

Closed thihaaung6245 closed 8 years ago

thihaaung6245 commented 8 years ago

Please reply me as soon as u see that because its emergency.When I log in to connect using the release version on App Store,it turn back to Connect Web View after choosing user permission (Allow).

Here is the flow -> Login-> Web View Appear -> Automatically Log in on Telenor Mobile Data -> Ask user permission that it will use phone number,email,address-> Click Allow->Webview dismiss -> and Show Web View of login page again.

Any help?

thihaaung6245 commented 8 years ago

Here is the log that appear on console when that happen

AccessToken not found (Connect Automatic Login using Telenor Mobile Data)
RefreshToken not found (Connect Automatic Login using Telenor Mobile Data)
tokens not saved (After Clicking Allow)
tokens not saved (After Clicking Allow)
tokens not saved (After Clicking Allow)
tokens not saved (After Clicking Allow)
AccessToken not found (Connect Automatic Login again using Telenor Mobile Data)
RefreshToken not found (Connect Automatic Login again using Telenor Mobile Data)

(xxxx) are just showing app statement

thihaaung6245 commented 8 years ago

I wonder how this worked? http://puu.sh/pyn5J/5e531f87bb.png

Why it return "tokens not saved"? on release version.On build version before releasing to AppStore,everything worked fine.

Any Help?Its already at AppStore. Here : Telenor Myanmar - Self Care iOS App

If you need to test,Here is demo account for you.Start using "Switch to email"

Email : htarwara.6245@gmail.com Password : 12345Thiha

jorunfa commented 8 years ago

Hi. I'll look at this immediately.

jorunfa commented 8 years ago

Found the source of the error: It would fail to save to KeyChain on all devices without passcode because of the security settings. Fixed in version 0.6.5: https://github.com/telenordigital/connect-ios-sdk/releases.