Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: IAM with SwiftUI #1321

Closed
1 task done
JohannPetzold opened this issue Sep 24, 2023 · 2 comments
Closed
1 task done

[Bug]: IAM with SwiftUI #1321

JohannPetzold opened this issue Sep 24, 2023 · 2 comments

Comments

@JohannPetzold
Copy link

JohannPetzold commented Sep 24, 2023

What happened?

Hello,

I'm facing an issue with IAM on a SwiftUI project. I followed the iOS SDK Setup and everything around OneSignal is running fine.
I can receive push notifications and even the test push notification when I send a test in-app. When I tap it on my device I got no IAM displayed.
I turned on OneSignal's logs and it seems like there is no issue.

Steps to reproduce?

- Follow iOS SDK Setup for SwiftUI installation
- Send Test in-app message from dashboard using test subscription of concerned device
- Tap on push notification Test in-app

What did you expect to happen?

The IAM template I chose from the dashboard should have been displayed.

OneSignal iOS SDK version

Releases 5.0.2

iOS version

15

Specific iOS version

iOS 17.0.2

Relevant log output

onesignalUserNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:
onesignalUserNotificationCenter:willPresentNotification:withCompletionHandler: Fired! Tap to see In-App Message preview for Test In App
finishProcessingNotification: Fired!
Notification display type: 0
notificationReceived called! opened: NO
IAM Preview Detected, Begin Handling

Code of Conduct

  • I agree to follow this project's Code of Conduct
@nan-li
Copy link
Contributor

nan-li commented Jan 31, 2024

Hi @JohannPetzold,
Thank you for reaching out and I do apologize for the delay.
I wouldn't using SwiftUI would make any difference.

What happens if you send the Test in-app message while your application is in the foreground, instead of tapping on a notification?

Update: Are you able to see any IAMs at all?

@emawby
Copy link
Contributor

emawby commented May 22, 2024

closing due to inactivity

@emawby emawby closed this as completed May 22, 2024
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

No branches or pull requests

3 participants