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
- Prefab override popup is cropped/positioned incorrectly when more than one display is used and a higher display Scale is set
- Opening a dropdown on a small screen results in its instant closing when mouse cursor is pressed where the dropdown is going to be opened
- Only "ArgumentNullException: Value cannot be null" is displayed instead of all the actual errors when opening a project with numerous compilation errors
- MultiColumnListView and MultiColumnTreeView do not change selection on first input when focus is set by code
- SerializedProperty.DataEquals is returning false when SerializedProperty.EqualContents return true
Add comment