Fix push notification type
This commit is contained in:
parent
56c809bfe9
commit
72d56e628a
2 changed files with 2 additions and 2 deletions
|
@ -137,7 +137,7 @@ public class PreferencesMigrator {
|
|||
String regId = mNewPrefs.getPushNotificationRegistrationID();
|
||||
String appId = getString(R.string.push_sender_id);
|
||||
if (regId != null && mNewPrefs.isPushNotificationEnabled()) {
|
||||
String contactInfos = "app-id=" + appId + ";pn-type=google;pn-tok=" + regId;
|
||||
String contactInfos = "app-id=" + appId + ";pn-type=" + getString(R.string.push_type) + ";pn-tok=" + regId;
|
||||
builder.setContactParameters(contactInfos);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -559,7 +559,7 @@ private static AssistantActivity instance;
|
|||
String regId = mPrefs.getPushNotificationRegistrationID();
|
||||
String appId = getString(R.string.push_sender_id);
|
||||
if (regId != null && mPrefs.isPushNotificationEnabled()) {
|
||||
String contactInfos = "app-id=" + appId + ";pn-type=google;pn-tok=" + regId;
|
||||
String contactInfos = "app-id=" + appId + ";pn-type=" + getString(R.string.push_type) + ";pn-tok=" + regId;
|
||||
builder.setContactParameters(contactInfos);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue