set currentDevice defaults, and support for close app on ios/android