Closed MarchewkaMatthew closed 1 year ago
Yes, it seems like the libraries MarketingCloudSDK is outdated.
Current MarketingCloudSDK:
s.dependency 'MarketingCloudSDK', '8.0.10'
Failed to initialize module MarketingCloudSDK.PushModule due to module version incompatibility. Provided version: 8.0.10, supported versions: >= 8.0.12 <= 8.9.9
Perhaps version: 8.0.13
could be used?
https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/
I made a fork and updated the version to 8.0.13
and it indeed helped. I still need to figure out a fix for one problem. getAttributes
returns null instead of empty object (so maybe I need to adjust the lib a little bit more), when I finish my fixes I will publish the PR to this repo.
@MarchewkaMatthew We hade issues with init the SDK on 8.0.13
but 8.0.12
seems to work.
Bumped MarkingCloudSDKs to latest version (iOS and Android) in 48.0.2
https://github.com/allboatsrise/expo-marketingcloudsdk/pull/13
Updated typescript types to match nullable values potentially returned on iOS in 48.0.3
https://github.com/allboatsrise/expo-marketingcloudsdk/pull/14
Hi @andrejpavlovic !
Thank you for maintaining this module. Last time we talked in April, you helped me to set up the notifications for both Android and iOS. We had some problems with the Android notifications so we were focused on that. Unfortunately, yesterday we realized that the iOS notifications are no longer working for us.
It seems that the Salesforce module is not initialized in our app. Should we do anything else than:
Of course before this code we take care about providing the permissions for the notifications.
Expected Behavior
The module is initialized on iOS, so we can register the device in Salesforce and set and fetch data like contactKey or attributes.
Actual Behavior
After enabling the log listener I receive this message to the console:
{"category": "interface", "level": 0, "message": "Module is not initialized. You need to initialize before using. Current status: failed", "subsystem": "SFMCSdk"}
Worth to mention that the same code works for Android without the problem. Are you familiar with this error? Do you know what may cause this issue only for iOS devices? Should we initialize the module from our code, or it should be initialized automatically? Any help would be appreciated.Specifications
package.json:
app.config.ts:
(removed the value from
mid
andsenderId
) For now, pasting only related packages, if needed I can provide more.Thank you in advance for your help!