Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • ios automatically converting dialed number

    • 0
    • 0
    • 0
    • 1
    • 0
    • 0
    • 0
    • 724
    Answer it

    I am writing code to make calls from the app.I am in India. It works fine for non toll free numbers. But for some number such as 18601231000 for BigBasket it is converting the number as +1(860)1231000 which when dialed comes as wrong number.But for numbers starting with 1800 it is coming fine. Here is my code snippet.

       private func dialNumber(phoneNumber:String) {
       let phoneUrl:NSURL = NSURL(string: "tel://\(phoneNumber)")!
       let application:UIApplication = UIApplication.sharedApplication()
       if(application.canOpenURL(phoneUrl))
      {
        application.openURL(phoneUrl)
      }
      self.ratingLabel.text = "Rate (self.selectedProvider!.providerName)' Customer Care"
      callCenter.callEventHandler = {(call:CTCall!) in
      switch call.callState {
      case CTCallStateConnected:
           break
      case CTCallStateDisconnected: 
            NSUserDefaults.standardUserDefaults().setBool(true, forKey: "ctCall")
           break
     default:
          break
     }
     }
     }
    

 1 Answer(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: