truecaller / ios-sdk

Apache License 2.0
16 stars 17 forks source link

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 6 years ago

pratikmi commented 6 years ago

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

2) 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.
}

}

Lyankar commented 5 years ago

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.