Skip to content

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

Merged
frankus merged 3 commits intoPBI-9241-example-upgradefrom
PBI-9241-example-upgrade-ios
Mar 30, 2026
Merged

Upgrade ApptentiveModule.swift to work with v7 of the iOS SDK#275
frankus merged 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

Comment thread ios/ApptentiveModule.swift
@@ -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.

@frankus frankus merged commit 18dc086 into PBI-9241-example-upgrade Mar 30, 2026
@frankus frankus deleted the PBI-9241-example-upgrade-ios branch March 30, 2026 15:27
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