Skip to content

Instantly share code, notes, and snippets.

@aesmail
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aesmail/9990782 to your computer and use it in GitHub Desktop.
Save aesmail/9990782 to your computer and use it in GitHub Desktop.
def application(app, didReceiveLocalNotification: notification)
if app.applicationState == UIApplicationStateInactive
NSLog("didReceiveLocalNotification...")
url = NSURL.URLWithString("sms:12345678")
NSLog("finished creating URL...")
app.openURL(url)
NSLog("opened URL... Done.")
elsif app.applicationState == UIApplicationStateActive
App.alert(notification.alertBody)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment