We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3eb0c81 commit 1ab8154Copy full SHA for 1ab8154
src/core/pushnotifications/providers/pushnotifications.ts
@@ -403,6 +403,11 @@ export class CorePushNotificationsProvider {
403
const data = notification ? notification.additionalData : {};
404
405
this.sitesProvider.getSite(data.site).then(() => {
406
+
407
+ if (typeof data.customdata == 'string') {
408
+ data.customdata = this.textUtils.parseJSON(data.customdata, {});
409
+ }
410
411
if (this.utils.isTrueOrOne(data.foreground)) {
412
// If the app is in foreground when the notification is received, it's not shown. Let's show it ourselves.
413
if (this.localNotificationsProvider.isAvailable()) {
0 commit comments