Skip to content

Commit 1ab8154

Browse files
committed
MOBILE-3039 push: Fix appurl from push notifs in iOS
1 parent 3eb0c81 commit 1ab8154

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/core/pushnotifications/providers/pushnotifications.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,11 @@ export class CorePushNotificationsProvider {
403403
const data = notification ? notification.additionalData : {};
404404

405405
this.sitesProvider.getSite(data.site).then(() => {
406+
407+
if (typeof data.customdata == 'string') {
408+
data.customdata = this.textUtils.parseJSON(data.customdata, {});
409+
}
410+
406411
if (this.utils.isTrueOrOne(data.foreground)) {
407412
// If the app is in foreground when the notification is received, it's not shown. Let's show it ourselves.
408413
if (this.localNotificationsProvider.isAvailable()) {

0 commit comments

Comments
 (0)