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 :)

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

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)

  • 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. – Lawrence Leung Aug 21 '20 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 '20 at 4:44
  • opened a case asking the precise state "Missing or invalid device token" for the 3rd time. Hope I would get a satisfactory response. thanks for the suggestion on capturing logs on affected device. Let me see what I can do about that. – Lawrence Leung Aug 22 '20 at 17:34
  • Tell the support representative to at-mention me directly. I will look through the case as soon as they do. – Bill Mote Aug 23 '20 at 3:53
  • Bill Mote, thanks in advance. Do you work for Salesforce? – Lawrence Leung Aug 23 '20 at 14:38

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.