Преглед изворни кода

Modified plugin.xml to avoid reveiver-calls from foreign apps on android

PKnittel пре 11 година
родитељ
комит
3ed7098864
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      plugin.xml

+ 2 - 2
plugin.xml

@@ -64,13 +64,13 @@
              * Android notification bar. The notification uses the default notification
              * sound and it vibrates the phone.
             -->
-            <receiver android:name="de.appplant.cordova.plugin.localnotification.Receiver" />
+            <receiver android:name="de.appplant.cordova.plugin.localnotification.Receiver" android:exported="false" />
 
 			<!--
              * The delete intent receiver is triggered when the user clears a notification
 			 * manually. It unpersists the cleared notification from the shared preferences.
             -->
-            <receiver android:name="de.appplant.cordova.plugin.localnotification.DeleteIntentReceiver" />
+            <receiver android:name="de.appplant.cordova.plugin.localnotification.DeleteIntentReceiver" android:exported="false"/>
 
             <!--
              * This class is triggered upon reboot of the device. It needs to re-register