Added in code to send the secret key to iOS app and create app on site