Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truecaller login click in my app and direct dimiss truecaller app and redirect to my app and did not chance to login and get data from user #14

Open
pratikmi opened this issue Aug 10, 2018 · 1 comment

Comments

@pratikmi
Copy link

  • I have integrate true caller iOS-SDK on my application and when we have to click TrueCaller login button which have added in my app that time truecaller application open but immediately redirect to my app and i have not chance to login in truecaller app and get user data.

We have to attached video also.

  1. Entitlement with applinks:"from my app which have created in truecaller developer account" remove https://

Trucaller_issue.zip

  1. I have to set up proper way according to you SDK Readme file.
    class ViewController: UIViewController, TCTrueSDKDelegate {

    override func viewDidLoad() {
    super.viewDidLoad()
    // Do any additional setup after loading the view, typically from a nib.
    //Setup TruecallerSDK
    MYapplink: with https:// same as provided in truecaller developer account

if TCTrueSDK.sharedManager().isSupported() {
TCTrueSDK.sharedManager().setup(withAppKey:"MYAPPID", appLink:"MYapplink")
}
TCTrueSDK.sharedManager().delegate = self
}

func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([Any]?) -> Swift.Void) -> Bool {
    return TCTrueSDK.sharedManager().application(application, continue: userActivity, restorationHandler: restorationHandler)
    
}

func didFailToReceiveTrueProfileWithError(_ error: TCError) {
    //Custom code here
}
func didReceive(_ profile: TCTrueProfile) {
    //Custom code here
    print(TCTrueProfile.self)
}

override func didReceiveMemoryWarning() {
    super.didReceiveMemoryWarning()
    // Dispose of any resources that can be recreated.
}

}

@pratikmi pratikmi changed the title Truecaller login click in my app and direct dimiss truecaller app and redirect to my app and did not change to login and get data from user Truecaller login click in my app and direct dimiss truecaller app and redirect to my app and did not chance to login and get data from user Aug 10, 2018
@Lyankar
Copy link

Lyankar commented Apr 22, 2019

Me also got the sane problem, but I logged in with my phone number. so it's getting only my profile details only. Are you got the solution for to get details of any number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants