Provide country
This commit is contained in:
parent
58eb43b2b9
commit
8b2b2554a0
@ -632,6 +632,7 @@ void AWSClient::registerPushNotificationEndpoint(const QString ®istrationId,
|
||||
payload.insert("appVersion", APP_VERSION);
|
||||
payload.insert("marketResearchAllowed", false);
|
||||
payload.insert("locale", QLocale().name());
|
||||
payload.insert("country", QLocale::countryToString(QLocale().country()));
|
||||
payload.insert("platform", QSysInfo::productType());
|
||||
payload.insert("platformVersion", QSysInfo::productVersion());
|
||||
|
||||
@ -643,7 +644,7 @@ void AWSClient::registerPushNotificationEndpoint(const QString ®istrationId,
|
||||
// foreach (const QByteArray &hdr, request.rawHeaderList()) {
|
||||
// qDebug() << hdr << ":" << request.rawHeader(hdr);
|
||||
// }
|
||||
// qDebug() << "Payload:" << qUtf8Printable(jsonDoc.toJson(QJsonDocument::Compact));
|
||||
qDebug() << "Payload:" << qUtf8Printable(jsonDoc.toJson(QJsonDocument::Compact));
|
||||
|
||||
QNetworkReply *reply = m_nam->post(request, jsonDoc.toJson(QJsonDocument::Compact));
|
||||
connect(reply, &QNetworkReply::finished, this, [reply]() {
|
||||
|
||||
Reference in New Issue
Block a user