This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.
[Bug] Android - ApplicationInfo.LabelRes value is not set #10537
Open
Description
Description
When making a new Xamarin.Forms project, and attempting to read the LabelRes property of the ApplicationInfo object, the value is 0. When making a new Xamarin.Android project this value is set, as expected, to a non-zero value.
I noticed this because push notifications in our app were not showing a title, and after taking a look at the Airship source code, they rely on pulling the app name as a default title, from the LabelRes property of the ApplicationInfo object.
Steps to Reproduce
- Read the LabelRes property of the ApplicationInfo object
Expected Behavior
Value is set to the resource id representing the string of the app name (label in Android Manifest)
Actual Behavior
Value is 0
Basic Information
- Version with issue: 4.6.0.7.2.6
- Last known good version: Unknown
- IDE: Visual Studio 2019
- Platform Target Frameworks:
- Android: 10
Reproduction Link
https://github.com/markmccaigue/labelrestesting
This will crash on lauch as it's attempting to retrieve a string resource with an id of 0.