Skip to content

Commit 4321ccc

Browse files
committed
Change exported attribute to false
1 parent 32d7e00 commit 4321ccc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

com.unity.mobile.notifications/Editor/AndroidNotificationPostProcessor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ internal static void InjectReceivers(string manifestPath, XmlDocument manifestXm
112112

113113
applicationXmlNode.AppendChild(notificationManagerReceiver);
114114
}
115-
notificationManagerReceiver.SetAttribute("exported", kAndroidNamespaceURI, "true");
115+
notificationManagerReceiver.SetAttribute("exported", kAndroidNamespaceURI, "false");
116116

117117
// Create notification restart-on-boot receiver if necessary.
118118
if (notificationRestartOnBootReceiver == null)
@@ -130,7 +130,7 @@ internal static void InjectReceivers(string manifestPath, XmlDocument manifestXm
130130
applicationXmlNode.AppendChild(notificationRestartOnBootReceiver);
131131
}
132132
notificationRestartOnBootReceiver.SetAttribute("enabled", kAndroidNamespaceURI, "false");
133-
notificationRestartOnBootReceiver.SetAttribute("exported", kAndroidNamespaceURI, "true");
133+
notificationRestartOnBootReceiver.SetAttribute("exported", kAndroidNamespaceURI, "false");
134134
}
135135

136136
internal static void AppendAndroidPermissionField(string manifestPath, XmlDocument xmlDoc, string name)

0 commit comments

Comments
 (0)