updated integration with APIs for both android and ios