# Ionic native bluetooth serial disconnect method

**URL:** <https://forum.ionicframework.com/t/ionic-native-bluetooth-serial-disconnect-method/119384>\
**Category:** Ionic Native\
**Created:** [January 25, 2018, 10:14am UTC](https://forum.ionicframework.com/t/ionic-native-bluetooth-serial-disconnect-method/119384 "2018-01-25T10:14:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cenong](https://avatars.discourse-cdn.com/v4/letter/c/439d5e/32.png) [@cenong](https://forum.ionicframework.com/u/cenong)\
**Post date:** [January 25, 2018, 10:14am UTC](https://forum.ionicframework.com/t/ionic-native-bluetooth-serial-disconnect-method/119384/1 "2018-01-25T10:14:55Z")

</div>

I have connected to bluetooth device with code below:

let alert = this.alertCtrl.create({  
title: ‘Connect’,  
message: ‘Do you want to connect with?’,  
buttons: [  
{  
text: ‘Cancel’,  
role: ‘cancel’,  
handler: () =\> {  
console.log(‘Cancel clicked’);  
}  
},  
{  
text: ‘Connect’,  
handler: () =\> {  
this.bluetoothSerial.connect(address).subscribe(this.success, this.fail);

```
  }
}

```

]  
});  
alert.present();  
it able to connected with no issue.

When i try to disconnect the device and connect another with code below:

let alert = this.alertCtrl.create({  
title: ‘Disconnect?’,  
message: ‘Do you want to Disconnect?’,  
buttons: [  
{  
text: ‘Cancel’,  
role: ‘cancel’,  
handler: () =\> {  
console.log(‘Cancel clicked’);  
}  
},  
{  
text: ‘Disconnect’,  
handler: () =\> {  
this.bluetoothSerial.disconnect();  
console.log(‘Disconnect clicked’);  
}  
}  
]  
});  
alert.present();  
i able to print “Disconnect clicked” but no response the device still connected. I have to go to android setting screen bluetooth to unpair the devices. “this.bluetoothSerial.disconnect();” this code look like not working. Any others way i can unpair the device? Please advice

---

<div class="post-metadata">

**Author:** ![cenong](https://avatars.discourse-cdn.com/v4/letter/c/439d5e/32.png) [@cenong](https://forum.ionicframework.com/u/cenong)\
**Post date:** [January 26, 2018, 10:52am UTC](https://forum.ionicframework.com/t/ionic-native-bluetooth-serial-disconnect-method/119384/2 "2018-01-26T10:52:20Z")

</div>

Solved and closed it.

---

<div class="post-metadata">

**Author:** ![thauany](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/thauany/32/116885_2.png) [@thauany](https://forum.ionicframework.com/u/thauany)\
**Post date:** [February 2, 2018, 10:52pm UTC](https://forum.ionicframework.com/t/ionic-native-bluetooth-serial-disconnect-method/119384/3 "2018-02-02T22:52:12Z")

</div>

Good night, I’m with the same problem the code to disconnect the device does not work, how could you do to disconnect the device? help me please

---

<div class="post-metadata">

**Author:** ![ashokraj1994](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@ashokraj1994](https://forum.ionicframework.com/u/ashokraj1994)\
**Post date:** [August 4, 2018, 7:49am UTC](https://forum.ionicframework.com/t/ionic-native-bluetooth-serial-disconnect-method/119384/4 "2018-08-04T07:49:47Z")

</div>

How did you solve that problem?

---

<div class="post-metadata">

**Author:** ![o1670873](https://avatars.discourse-cdn.com/v4/letter/o/67e7ee/32.png) [@o1670873](https://forum.ionicframework.com/u/o1670873)\
**Post date:** [December 5, 2018, 11:32am UTC](https://forum.ionicframework.com/t/ionic-native-bluetooth-serial-disconnect-method/119384/5 "2018-12-05T11:32:52Z")

</div>

Please help to solve the problem

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:53pm UTC](https://forum.ionicframework.com/t/ionic-native-bluetooth-serial-disconnect-method/119384/6 "2021-07-19T21:53:19Z")

</div>

Closed on July 19, 2021, 9:53pm UTC


