Alert Controller not working in ios Device

Hi, i have an alert controller which works very smooth on android but not in ios.
I dont know what would be the reason, Its not giving any error also.

let alert = this.alertCtrl.create({
        title: "Submission of Order",
        message: "Are you sure you want to submit",
        buttons: [
            text: "Cancel",
            role: "cancel",
            handler: () => {
              console.log("Cancel clicked");
            text: "Submit",
            handler: () => {
              console.log("Submit clicked");
              alert.onDidDismiss(() => {
                let loading = this.loadingCtrl.create({
                  content: "Please wait until the order gets displayed ....."


thats my code and whenever i try to click on submit button its calling the cancel handler.


Can anyone please help me with this issue.

Hi, you’re not missing alert.present(); ?

i have added that also but i forget to add that here