3

Hi Experts,

I have developed an app using Salesforce Marketing Cloud SDK for React Native (source: https://github.com/salesforce-marketingcloud/react-native-marketingcloudsdk).
Android is working perfectly for mobilePush from Marketing Cloud.
However, problems occured when I develop the app in iOS.

I have provide APNS Certificate for Sandbox & Production for push service.
When tried using .ipa and install into iphone device, the result is this:

enter image description here
Opt Out Source: "Service Feedback"

Then when tried to install using TestFlight, there are 2 results occured without changing anything in different devices:

enter image description here

Opt Out Source: "User Disabled Push"

enter image description here Opt Out Source: "Missing or Invalid Device Token"

Can please help why this errors occured and how to solve?

Steps that I have done:
1. Create Production APNS Certificate Push Notification for SFMC
2. Use .ipa and TestFlight to install the app
3. Enable push notification in XCode

Really appreciate for your help :)

2
  • Lyon, did you get this to work? Jul 24, 2020 at 10:39
  • I see the internal case is closed. What was the resolution?
    – Bill Mote
    Sep 8, 2020 at 17:25

1 Answer 1

2

This is almost certainly a certificate issue. Please review the documentation and update your certificate accordingly (ref. https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/get-started/get-started-provision.html)

13
  • Bill, some mobile contacts have the above issue for my setup and I'm trying to figure out why. The interesting thing is that my setup works for majority of android + ios devices, only a handful of android device suffering from "Missing or invalid Device Token" rendering not getting any push notification originated from SFMC. Aug 21, 2020 at 19:37
  • Have you enabled logging and what do the logs say on an affected device? What does the output from the "get SDK state" method report on an affected device? Have you opened a case through your support representative?
    – Bill Mote
    Aug 22, 2020 at 4:44
  • 1
    @codeguy open a support ticket and have them at-mention me.
    – Bill Mote
    Oct 21, 2021 at 12:20
  • 1
    @BillMote had to wait for someone to come back so I could access support but managed to sort it today, Apple issue not SF. thanks though.
    – codeguy
    Oct 26, 2021 at 16:10
  • 1
    ye sorry @BillMote, very new to push and went onto my iMac and generated a signing request, uploaded to Apple then worked fine, not sure why same process from Macbook was not working.
    – codeguy
    Oct 26, 2021 at 16:13

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.