Closed aljazkosirnik-specto closed 1 week ago
Try setting: debug: true
and analyticsEnabled: true
.
If you don't see any new error messages, try building locally and see what shows up in xcode logs
Hello!
I've been having exactly the same problem since updating to expo 50. All module functions (promises) are pending and neither fulfilled nor rejected. The SFMCSDK seems completely unresponsive.
As suggested, I've set debug: true
and analyticsEnabled: true
. However, I don't see any errors or anomalies in the logs.
Any ideas?
working:
"dependencies": {
"@allboatsrise/expo-marketingcloudsdk": "^49.0.1",
"expo": "~49.0.21",
…
}
not working:
"dependencies": {
"@allboatsrise/expo-marketingcloudsdk": "^50.2.0",
"expo": "^50.0.17",
…
}
As suggested, I've set
debug: true
andanalyticsEnabled: true
. However, I don't see any errors or anomalies in the logs. You're not seeing any issue in xcode logs?
What appears in the logs after something like MarketingCloud.setSystemToken
is called?
What appears in the logs after something like MarketingCloud.setSystemToken is called?
Thank you for your quick reply! Unfortunately nothing at all.
But I noticed that not all functions are "unresponsive". That's the result of await MarketingCloud.getSdkState()
{
"modules" : {
"cdp" : {
"compatibility" : "2.0.4 - 2.9.9",
"name" : "cdp",
"pendingOperations" : "undefined",
"status" : "inactive",
"version" : "unavailable"
},
"push" : {
"compatibility" : "8.1.2 - 8.9.9",
"name" : "push",
"pendingOperations" : "undefined",
"status" : "failed",
"version" : "unavailable"
}
},
"version" : "1.1.2"
}
Seems like push module failed to load, which is basically the main module used by this integration. You'll have to take a closer look at the logs and/or paste them here.
No idea why this is only showing up when running the development build in the Simulator, but anyway, finally got something:
Failed to initialize module SFMCSdkPushModule due to module version incompatibility. Provided version: 8.1.1, supported versions: >= 8.1.2 <= 8.9.9
edit: I just noticed that you bumped the MarketingCloudSDK version a few hours ago. I'm checking to see if it's working now…
edit2: @andrejpavlovic Yes, that was it! It's working again, thank you!
I can also confirm that the new v50.2.1 fixed the issue. Thank you!
I am stuck with this issue, SF support doesn't seem to know also, so I am looking for help here if anyone will know.
Android works and all the devices and contacts get set inside Marketing Cloud, but on iOS no promises resolve, it fails on the first function call.
Versions:
App config:
How I am testing it:
Logs:
So it never goes over
setSystemToken
, the push token is valid, the promise never finishes. There is also no error when wrapping with try catch.What I have also tried:
Does anyone know where the issue might be? Why would the SDK fail on iOS, while Android works fine?