parent
a2b88d87b0
commit
703934a221
1 changed files with 1 additions and 8 deletions
|
@ -23,8 +23,6 @@ import android.Manifest;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.pm.PackageManager;
|
import android.content.pm.PackageManager;
|
||||||
|
|
||||||
import com.google.firebase.iid.FirebaseInstanceId;
|
|
||||||
|
|
||||||
import org.linphone.core.AVPFMode;
|
import org.linphone.core.AVPFMode;
|
||||||
import org.linphone.core.Address;
|
import org.linphone.core.Address;
|
||||||
import org.linphone.core.TransportType;
|
import org.linphone.core.TransportType;
|
||||||
|
@ -1176,12 +1174,7 @@ public class LinphonePreferences {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getPushNotificationRegistrationID() {
|
public String getPushNotificationRegistrationID() {
|
||||||
String pushId = getConfig().getString("app", "push_notification_regid", null);
|
return getConfig().getString("app", "push_notification_regid", null);
|
||||||
if (pushId == null) {
|
|
||||||
pushId = FirebaseInstanceId.getInstance().getToken();
|
|
||||||
setPushNotificationRegistrationID(pushId);
|
|
||||||
}
|
|
||||||
return pushId;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void useIpv6(Boolean enable) {
|
public void useIpv6(Boolean enable) {
|
||||||
|
|
Loading…
Reference in a new issue