datso / react-native-pjsip

A PJSIP module for React Native.
http://datso.github.io/react-native-pjsip
GNU General Public License v3.0
273 stars 229 forks source link

How to delete an account registered on server when app kill/ force close? #187

Open Soliy0u opened 5 years ago

Soliy0u commented 5 years ago

How to delete an account registered on Free switch server when app kill/ force close? My application get the account credentials from the backend after login, it return a unique new account, after logout I delete the account using endpoint.deleteAccount(account), it's working for me. But when I don't logout and kill my app, I relaunch it and make delete this account with id 0 but I receive an error "Account with "0" id not found". Please help me, I wanna remove accounts registered when app kill or force close.

oojikoo commented 4 years ago

The same here. Anyone solved this? I want to deregister from server when app quits or goes background.