Search Issue Tracker
Fixed
Fixed in 2.2.2
Votes
0
Found in [Package]
2.2.1
Issue ID
MNB-60
Regression
No
Remote Notification Presentation Options for iOS are not used with Register for Push Notification on App Launch disabled
When using the Mobile Notifications package on iOS the Remote Notification Foreground Presentation Options are not used when the Register for Push Notification on App Launch option is disabled.
This means that for a user to make use of their presentation options they need to always have the "Register for Push Notification on App Launch" option enabled.
In the attached pngs you can see both the settings menu and the code where the issue is present. In the native generated code you can see that there is an if statment that stops these presentation options from being applied in the case of authorize on launch is disabled.
How to reproduce:
1. Download the attached "iOS Register For Push" project
2. Build and deploy the project to iOS (make sure "Request Authorization on App Launch" is disabled)
3. Select the Cookie option
4. Observe the notification that appears after the loading bar fills
Expected outcome: Notification will respect the foreground presentation options
Actual outcome: Notification will not respect the foreground presentation options
Reproducible with: 2022.3.5f1 (user-provided info)
Reproduced with: iPhone XR (user-provided info)
Note: Unable to reproduce on any LTS versions
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Add comment