google voice on a new phone

I live in California, using at&t. In my case, recently I got a new iphone 4 to replace my old iphone 3g. The transition has been smooth even though I lost all settings from my individual apps. But, the one thing that caught my attention is google voice. Now, I am not blaming any party here, since it’s always technically challenging to have two companies involved in one device.

btw, I am referring to the phone service, not the gv app. When some people call my at&t number they get a “phone not in service” error message, same error when calling my gv number. However, some other people are fine calling me. Strange…

After many trials, I figured out a way to get things back to normal.

  1. Go to your google voice web page
  2. Click on Settings -> Voice Settings
  3. Go to the Phones tab
  4. Locate your at&t phone, click Edit
  5. At your Number field, take away “+1″, then click Save
  6. You will be asked to verify your phone.
  7. Now, click on the “Deactivate Google voicemail on this phone” link and follow the instructions.
  8. Then, click on the “Activate Google voicemail on this phone” link and follow the instructions. You may need to refresh your google voice web page if the link is not responsive.

Now both of my numbers are pointing to my at&t phone correctly.

On a side note, when I called my gv # from another phone, after declining it the first time on my at&t phone, I got a second call again…? Then I declined again, and it went to my gv voicemail. This is strange also, but at least it won’t bother the caller.

itunesconnect error

Since my iphone OS got upgraded to iOS 4, I had to upgrade my Xcode as well… I just installed the latest Xcode 3.2.3 from xcode_3.2.3_and_iphone_sdk_4__final. It took out my previous SDK versions, and now I only have 3.2 and 4.0 left.

It took me a while to fix all the framework paths. For your convenience, right click on a red framework, then choose General, for Path Type choose Absolute Path, then navigate to the following path to re-select your framework paths.

Then when I got to the itunesconnect submission page, I got the following error message:

The binary you uploaded was invalid. An application targeting the iPhone device family may not require a iPhone OS Deployment Target of 3.2, which is an iPad-only OS.

Very puzzling as always… After trying things here and there, I settled by changing the Base SDK to iPhone Device 4.0. This may not be a good choice if you want to support old iphones, but it’s one way to submit an app update…

Hope this could save you some time on that error message.

CLLocationManager error

This happened to me while debugging an iphone app with CoreLocation. I got crashes consistently. Then I started paying more attention to the console output, here is the error message:

ERROR,Time,290362745.002,Function,”void CLClientHandleDaemonDataRegistration(__CLClient*, const CLDaemonCommToClientRegistration*, const __CFDictionary*)”,server did not accept client registration 1
WARNING,Time,290362745.005,Function,”void CLClientHandleDaemonInvalidation(__CFMessagePort*, void*)”,client 1035.0 has been disconnected from daemon

That doesn’t make much sense… ^^;

Then I realized I kept saying no to the pop up question “Would Like to Use Your Current Location”. I tried saying “OK”, then everything worked. No more errors.

Well… but not everyone would click ok. How do I get the “Don’t allow” or “OK” response from the user…? I am not sure, let me know if you can find it.

The solution for now though, is to handle this with the didFailWithError callback. Put your error handling code in there to turn off the location manager.

- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error {
  [manager stopUpdatingLocation];

If you’re using MKMapView, set the showsUserLocation property to false.

- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error {
  self.mapView.showsUserLocation = false;

This will stop those errors. Hope this helps!

Sale's reports of pre and iphone

There’s been a lot of buzz on iphone and palm pre. Well, let’s look at the numbers. Apple says it sold more than 1 million iPhone 3GSs. Palm has sold 150,000 Pres.

Of course, I am sure there must be loopholes in getting these numbers. But hey, that’s still quite a big gap between 1,000,000 and 150,000 !!!

I think it is fair to say that, the app developers will flock to wherever having a bigger customer base. According to our numbers, iphone is the winner for now.

Recently I had a chance to try out the palm pre. From my brief encounter with it, I am still not convinced palm pre is any threat to apple’s iphone. Lack of apps is quite fatal.

The cell phone war continues.