Set push informations in contact param when using account builder
This commit is contained in:
parent
5f6419de87
commit
0c75b90d9f
1 changed files with 7 additions and 0 deletions
|
@ -373,6 +373,13 @@ public class LinphonePreferences {
|
|||
prxCfg.setQualityReportingCollector(tempQualityReportingCollector);
|
||||
prxCfg.setQualityReportingInterval(tempQualityReportingInterval);
|
||||
|
||||
String regId = LinphonePreferences.instance().getPushNotificationRegistrationID();
|
||||
String appId = LinphonePreferences.instance().getString(R.string.push_sender_id);
|
||||
if (regId != null && LinphonePreferences.instance().isPushNotificationEnabled()) {
|
||||
String contactInfos = "app-id=" + appId + ";pn-type=" + LinphonePreferences.instance().getString(R.string.push_type) + ";pn-tok=" + regId + ";pn-silent=1";
|
||||
prxCfg.setContactUriParameters(contactInfos);
|
||||
}
|
||||
|
||||
if(tempPrefix != null){
|
||||
prxCfg.setDialPrefix(tempPrefix);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue