Added appstatesync API