Refactor ccuserdefault

Support default value on iOS and android.