Skip to content

Upgrade ApptentiveModule.swift to work with v7 of the iOS SDK#275

Open
frankus wants to merge 3 commits intoPBI-9241-example-upgradefrom
PBI-9241-example-upgrade-ios
Open

Upgrade ApptentiveModule.swift to work with v7 of the iOS SDK#275
frankus wants to merge 3 commits intoPBI-9241-example-upgradefrom
PBI-9241-example-upgrade-ios

Conversation

@frankus
Copy link
Copy Markdown
Collaborator

@frankus frankus commented Mar 14, 2026

Also update module to work with v7 iOS SDK.

@frankus frankus changed the title Pbi 9241 part two: Upgrade example to work with newer RN Upgrade ApptentiveModule.swift to work with v7 of the iOS SDK Mar 14, 2026
Copy link
Copy Markdown

@mikitahal mikitahal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left 2 comments, otherwise LGTM

Apptentive.shared.canShowInteraction(event: Event(name: event), completion: { (result) -> Void in
switch result {
case .success(let canShowInteraction):
Task {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also be annotated with @mainactor?

let launchedMessageCenter = try await Apptentive.shared.presentMessageCenter(from: nil)
resolve(launchedMessageCenter)
case .failure(let error):
} catch let error {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a side note and not a blocker in any way, you can drop let error from catch, catch under the hood already has error so you can turn to it without explicitly declaring it

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be added to git? Isn't it auto generated?

Copy link
Copy Markdown
Contributor

@PoornimaApptentive PoornimaApptentive left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left two comments. Non blocking. But dev need to review it before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants