Skip to content

how can I show alert message after upload file #25

Description

@luoganghua

I want to show a message to tell user that uploading file is finished.
But it did not show.
The source is following.
net.POST(url, params: params, successHandler: {responseData in
let localNotification = UILocalNotification()
localNotification.alertBody = "finished!"
UIApplication.sharedApplication().presentLocalNotificationNow(localNotification)
}, failureHandler: { error in
// 失敗
let localNotification = UILocalNotification()
localNotification.alertBody = "error!"
UIApplication.sharedApplication().presentLocalNotificationNow(localNotification)

})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions