added the ios platform specific code. added more fields.