Sending push notifications to specific devices and types (Android/iOS) | Community
Skip to main content
New Participant
February 28, 2024
Solved

Sending push notifications to specific devices and types (Android/iOS)

  • February 28, 2024
  • 2 replies
  • 2428 views

Hi there,

 

We have one app surface that has both android & iOS configured, and we prefer not to split them up to different app surfaces. And I am wondering if there's a way in Campaigns and Journeys, that we can target only specific device types (iOS/Android). 

 

In test mode, I've tried entering one single ECID, and it fires a push notification to all my devices (Android/iOS). So I am wondering:

1) Is there a way to send push notifications only to a specific ECID

2) Is there a way to send push notifications only to Android or iOS devices

 

Thanks,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by _Manoj_Kumar_

Hello @akwankl 

 

The only way to do this currently is by using two app surfaces.

2 replies

Mohan_Dugganab
Employee
March 4, 2024

In test mode, if ECID is being used - then the details associated with that profile would be pulled in.

 

If there are multiple tokens associated with the profile, collection management functions can be leveraged to retrieve the corresponding android / ios tokens by filtering against the platform, appId values.

 

Reference

https://experienceleague.adobe.com/docs/journey-optimizer/using/orchestrate-journeys/building-advanced-conditions-journeys/syntax/collection-management-functions.html?lang=en

akwanklAuthor
New Participant
March 4, 2024

Thanks @mohan_dugganab, can you help me out with this?

 

 

 

 

 

I have this in the push parameters:

 

#{ExperiencePlatform.AppNotifications.profile.pushNotificationDetails.all(currentDataPackField.platform == 'apns' and currentDataPackField.identity.id == ${externalKey}).token}

 

But it's coming back with this error:

"push channel details are invalid, payload: {\n \"push\" : {\n \"token\" : \"[abc1234567maskedtoken]\"\n }\n}"

 

It's returning the token correctly, but doesn't seem to fit the syntax required in the push action.

 

Thanks.

_Manoj_Kumar_
New Participant
March 6, 2024

Hello @akwankl 

 

With collection management functions you can only filter the records with a certain key value pair. You cannot pick the collection to strip the parameter to force the push delivery to use the remaining parameters.

     Manoj     Find me on LinkedIn
_Manoj_Kumar_
_Manoj_Kumar_Accepted solution
New Participant
March 3, 2024

Hello @akwankl 

 

The only way to do this currently is by using two app surfaces.

     Manoj     Find me on LinkedIn
Employee
March 4, 2024

Agree with @_manoj_kumar_  - best way to achieve this is to have 2 app surfaces.