1

I'm implementing the Android PushSDK. I have the following code in my main activity:

MarketingCloudSdk.requestSdk(sdk -> sdk.getRegistrationManager()
        .edit()
        .setContactKey("123456")
        .setAttribute("First Name", "Hello")
        .setAttribute("Last Name", "World")
        .commit());

I looked at Marketing Cloud: Mobile Push Attributes already, and I've verified First Name and Last Name are in the Data Designer.

However when I look at the contact, the contact key looks like it came across, but the first name and last name are not filled in:

enter image description here

Any ideas about this?

  • Do you have logging enabled and if so, do you see any logs for the registration request that should be sent once you complete the edit. Also, you can check the output of MarketingCloudSdk#getSdkState and see when the last registration was successfully sent from your device. – Seth Mar 7 at 10:44
1

The Attributes can be set with firstname and lastname without spaces. This can be seen in the MobilePush Demographics under Audience Builder. This has always been the case, but I do not know why.

enter image description here

  • 1
    Thanks! this was the cause! – mercifulhop Mar 8 at 3:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.