Open Settings prompt cancel button action
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
When you hit cancel, are you getting false?
@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)