OneSignal-iOS-SDK icon indicating copy to clipboard operation
OneSignal-iOS-SDK copied to clipboard

[Bug]: IAM with SwiftUI

Open JohannPetzold opened this issue 1 year ago • 1 comments

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

  • [X] I agree to follow this project's Code of Conduct

JohannPetzold avatar Sep 24 '23 11:09 JohannPetzold

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?

nan-li avatar Jan 31 '24 00:01 nan-li

closing due to inactivity

emawby avatar May 22 '24 21:05 emawby