Registration method and electronic device
A registration method, includes: obtaining, in a process in which a preset application downloads data through a communication radio frequency link, a remaining online duration of an electronic device registered in the Internet protocol multimedia subsystem; obtaining a data demand of the preset application in a case that the remaining online duration is greater than a first preset duration and less than a second preset duration, where the first preset duration is greater than or equal to a duration required for the electronic device to re-register in the Internet protocol multimedia subsystem; and performing, in a case that the data demand is less than a preset data demand, re-registration in the Internet protocol multimedia subsystem through the communication radio frequency link.
1 . A registration method, performed by an electronic device, wherein the electronic device is connected to an Internet protocol multimedia subsystem, and the method comprises:
obtaining, in a process in which a preset application downloads data through a communication radio frequency link, a remaining online duration of the electronic device registered in the Internet protocol multimedia subsystem;
obtaining a data demand of the preset application when the remaining online duration is greater than a first preset duration and less than a second preset duration, wherein the first preset duration is greater than or equal to a duration required for the electronic device to re-register in the Internet protocol multimedia subsystem; and
performing, when the data demand is less than a preset data demand, re-registration in the Internet protocol multimedia subsystem through the communication radio frequency link.
2 . The method according to claim 1 , wherein a first subscriber identification module and a second subscriber identification module are installed in the electronic device, and the electronic device is connected to the Internet protocol multimedia subsystem through the second subscriber identification module, and the obtaining, in the process in which the preset application downloads data through the communication radio frequency link, the remaining online duration of the electronic device registered in the Internet protocol multimedia subsystem comprises:
obtaining, in the process in which the preset application downloads data through the communication radio frequency link based on the first subscriber identification module, a remaining online duration of the second subscriber identification module registered in the Internet protocol multimedia subsystem; and
the first preset duration is greater than or equal to a duration required for the second subscriber identification module to re-register in the Internet protocol multimedia subsystem, and the performing, when the data demand is less than the preset data demand, re-registration in the Internet protocol multimedia subsystem through the communication radio frequency link comprises:
setting, in a case that the data demand is less than the preset data demand, that the second subscriber identification module performs re-registration in the Internet protocol multimedia subsystem through the communication radio frequency link.
3 . The method according to claim 2 , wherein before the setting, in a case that the data demand is less than the preset data demand, that the second subscriber identification module performs re-registration in the Internet protocol multimedia subsystem through the communication radio frequency link, the method further comprises:
obtaining signal data corresponding to the second subscriber identification module, wherein the signal data comprises: at least one of a signal-to-noise ratio or a signal strength; and
the setting, in a case that the data demand is less than the preset data demand, that the second subscriber identification module performs re-registration in the Internet protocol multimedia subsystem through the communication radio frequency link comprises:
setting, in a case that the data demand is less than the preset data demand and the signal data is greater than preset signal data, that the second subscriber identification module performs re-registration in the Internet protocol multimedia subsystem through the communication radio frequency link.
4 . The method according to claim 1 , wherein a first subscriber identification module is installed in the electronic device, and the electronic device is connected to the Internet protocol multimedia subsystem through the first subscriber identification module, and the obtaining, in the process in which the preset application downloads data through the communication radio frequency link, the remaining online duration of the electronic device registered in the Internet protocol multimedia subsystem comprises:
obtaining, in the process in which the preset application downloads data through the communication radio frequency link based on the first subscriber identification module, a remaining online duration of the first subscriber identification module registered in the Internet protocol multimedia subsystem; and
the first preset duration is greater than or equal to a duration required for the first subscriber identification module to re-register in the Internet protocol multimedia subsystem, and the performing, when the data demand is less than the preset data demand, re-registration in the Internet protocol multimedia subsystem through the communication radio frequency link comprises:
setting, in a case that the data demand is less than the preset data demand, that the first subscriber identification module performs re-registration in the Internet protocol multimedia subsystem through the communication radio frequency link.
5 . The method according to claim 1 , wherein before the obtaining the data demand of the preset application when the remaining online duration is greater than the first preset duration and less than the second preset duration, the method further comprises:
re-obtaining, in the process in which the preset application downloads data through the communication radio frequency link in a case that the remaining online duration is greater than the second preset duration, the remaining online duration of the electronic device registered in the Internet protocol multimedia subsystem; and
the obtaining the data demand of the preset application when the remaining online duration is greater than the first preset duration and less than the second preset duration comprises:
obtaining the data demand of the preset application in a case that the remaining online duration re-obtained is greater than the first preset duration and less than the second preset duration; and
performing, in a case that the remaining online duration is less than or equal to the first preset duration, re-registration in the Internet protocol multimedia subsystem through the communication radio frequency link.
6 . An electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the electronic device is connected to an Internet protocol multimedia subsystem, and the computer program, when executed by the processor, causes the electronic device to perform:
obtaining, in the process in which a preset application downloads data through a communication radio frequency link, a remaining online duration of the electronic device registered in the Internet protocol multimedia subsystem;
obtaining a data demand of the preset application when the remaining online duration is greater than a first preset duration and less than a second preset duration, wherein the first preset duration is greater than or equal to a duration required for the electronic device to re-register in the Internet protocol multimedia subsystem; and
performing, when the data demand is less than a preset data demand, re-registration in the Internet protocol multimedia subsystem through the communication radio frequency link.
7 . The electronic device according to claim 6 , wherein a first subscriber identification module and a second subscriber identification module are installed in the electronic device the electronic device is connected to the Internet protocol multimedia subsystem through the second subscriber identification module, and the computer program, when executed by the processor, causes the electronic device to perform:
obtaining, in the process in which the preset application downloads data through the communication radio frequency link based on the first subscriber identification module, a remaining online duration of the second subscriber identification module registered in the Internet protocol multimedia subsystem, the first preset duration is greater than or equal to a duration required for the second subscriber identification module to reregister in the Internet protocol multimedia subsystem; and
setting, in a case that the data demand is less than the preset data demand, that the second subscriber identification module performs re-registration in the Internet protocol multimedia subsystem through the communication radio frequency link.
8 . The electronic device according to claim 7 , wherein the computer program, when executed by the processor, causes the electronic device to further perform:
obtaining signal data corresponding to the second subscriber identification module, wherein the signal data comprises: at least one of a signal-to-noise ratio or a signal strength; and
setting, in a case that the data demand is less than the preset data demand and the signal data is greater than preset signal data, that the second subscriber identification module performs re-registration in the Internet protocol multimedia subsystem through the communication radio frequency link.
9 . The electronic device according to claim 6 , wherein a first subscriber identification module is installed in the electronic device, and the electronic device is connected to the Internet protocol multimedia subsystem through the first subscriber identification module, and the computer program, when executed by the processor, causes the electronic device to perform:
obtaining, in the process in which the preset application downloads data through the communication radio frequency link based on the first subscriber identification module, a remaining online duration of the first subscriber identification module registered in the Internet protocol multimedia subsystem, wherein the first preset duration is greater than or equal to a duration required for the first subscriber identification module to re-register in the Internet protocol multimedia subsystem; and
setting, in a case that the data demand is less than the preset data demand, that the first subscriber identification module performs re-registration in the Internet protocol multimedia subsystem through the communication radio frequency link.
10 . The electronic device according to claim 6 , wherein the computer program, when executed by the processor, causes the electronic device to further perform:
re-obtaining, in the process in which the preset application downloads data through the communication radio frequency link in a case that the remaining online duration is greater than the second preset duration, the remaining online duration of the electronic device registered in the Internet protocol multimedia subsystem;
obtaining the data demand of the preset application in a case that the remaining online duration re-obtained is greater than the first preset duration and less than the second preset duration; and
performing, in a case that the remaining online duration is less than or equal to the first preset duration, re-registration in the Internet protocol multimedia subsystem through the communication radio frequency link.
11 . A non-transitory computer readable storage medium, storing a computer program, wherein the computer program, when executed by a processor of an electronic device that is connected to an Internet protocol multimedia subsystem, causes the electronic device to perform:
obtaining, in a process in which a preset application downloads data through a communication radio frequency link, a remaining online duration of the electronic device registered in the Internet protocol multimedia subsystem;
obtaining a data demand of the preset application when the remaining online duration is greater than a first preset duration and less than a second preset duration, wherein the first preset duration is greater than or equal to a duration required for the electronic device to re-register in the Internet protocol multimedia subsystem; and
performing, when the data demand is less than a preset data demand, re-registration in the Internet protocol multimedia subsystem through the communication radio frequency link.
12 . The non-transitory computer readable storage medium according to claim 11 , wherein a first subscriber identification module and a second subscriber identification module are installed in the electronic device, the electronic device is connected to the Internet protocol multimedia subsystem through the second subscriber identification module, and the computer program, when executed by the processor, causes the electronic device to perform:
obtaining, in the process in which the preset application downloads data through the communication radio frequency link based on the first subscriber identification module, a remaining online duration of the second subscriber identification module registered in the Internet protocol multimedia subsystem, wherein the first preset duration is greater than or equal to a duration required for the second subscriber identification module to re-register in the Internet protocol multimedia subsystem; and
setting, in a case that the data demand is less than the preset data demand, that the second subscriber identification module performs re-registration in the Internet protocol multimedia subsystem through the communication radio frequency link.
13 . The non-transitory computer readable storage medium according to claim 12 , wherein the computer program, when executed by the processor, causes the electronic device to further perform:
obtaining signal data corresponding to the second subscriber identification module, wherein the signal data comprises: at least one of a signal-to-noise ratio or a signal strength;
setting, in a case that the data demand is less than the preset data demand and the signal data is greater than preset signal data, that the second subscriber identification module performs re-registration in the Internet protocol multimedia subsystem through the communication radio frequency link.
14 . The non-transitory computer readable storage medium according to claim 11 , wherein a first subscriber identification module is installed in the electronic device, and the electronic device is connected to the Internet protocol multimedia subsystem through the first subscriber identification module, and the computer program, when executed by the processor, causes the electronic device to perform:
obtaining, in the process in which the preset application downloads data through the communication radio frequency link based on the first subscriber identification module, a remaining online duration of the first subscriber identification module registered in the Internet protocol multimedia subsystem, wherein the first preset duration is greater than or equal to a duration required for the first subscriber identification module to re-register in the Internet protocol multimedia subsystem; and
setting, in a case that the data demand is less than the preset data demand, that the first subscriber identification module performs re-registration in the Internet protocol multimedia subsystem through the communication radio frequency link.
15 . The non-transitory computer readable storage medium according to claim 11 , wherein the computer program, when executed by the processor, causes the electronic device to further perform:
re-obtaining, in the process in which the preset application downloads data through the communication radio frequency link in a case that the remaining online duration is greater than the second preset duration, the remaining online duration of the electronic device registered in the Internet protocol multimedia subsystem;
obtaining the data demand of the preset application in a case that the remaining online duration re-obtained is greater than the first preset duration and less than the second preset duration; and
performing, in a case that the remaining online duration is less than or equal to the first preset duration, re-registration in the Internet protocol multimedia subsystem through the communication radio frequency link.