OneSignal-XCFramework icon indicating copy to clipboard operation
OneSignal-XCFramework copied to clipboard

Open Settings prompt cancel button action

Open szenasimartin opened this issue 8 months ago • 2 comments

I am using the 3.12.10 version When I call + (void)promptForPushNotificationsWithUserResponse:(OSUserResponseBlock)block fallbackToSettings:(BOOL)fallback; And the Cancel button is clicked the block is being called without any information the dialog was canceled typedef void(^OSUserResponseBlock)(BOOL accepted);

When the user hit cancel the block shouldn't be called or it should give back a cancelled flag

https://github.com/user-attachments/assets/4fa53e3c-cc06-49c6-b04f-a40bc99e8ac2

szenasimartin avatar May 01 '25 12:05 szenasimartin

When you hit cancel, are you getting false?

nan-li avatar May 01 '25 14:05 nan-li

@nan-li Sorry for my late response. Yes the accepted flag is false, but the user in this case click on cancel and not decline the permission. I want to show the app settings page if the user don't accept the permission and don't want to show that settings page when click Cancel. I guess you need an extra cancelled flag for that callback, so I can differentiate this 2 cases(permission flow cancelled or declined)

szenasimartin avatar Jun 13 '25 13:06 szenasimartin