Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
fixed issue #2061: Localization in message not working correctly. (#2062
Browse files Browse the repository at this point in the history
)
  • Loading branch information
kelvinhokk authored and macdonst committed Nov 20, 2017
1 parent 3398120 commit b8454d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/android/com/adobe/phonegap/push/FCMService.java
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ private Bundle normalizeExtras(Context context, Bundle extras, String messageKey
newExtras.putString(jsonKey, value);
}
}
else if (data.has(LOC_KEY) || data.has(LOC_DATA)) {
String newKey = normalizeKey(key, messageKey, titleKey);
Log.d(LOG_TAG, "replace key " + key + " with " + newKey);
replaceKey(context, key, newKey, extras, newExtras);
}
} catch (JSONException e) {
Log.e(LOG_TAG, "normalizeExtras: JSON exception");
}
Expand Down

0 comments on commit b8454d1

Please sign in to comment.