Use ios specific callback to save device id