forked from Github/cordova-plugin-run-in-background
Add Android-specific options
Now the app can: -Set the channel name and description -Set the notification subtext -Add a "Close" action to the notification, along with customizing the action text and icon Fixed bugs: -Icon is never used if it's in "drawable" rather than "mipmap" -Used "Compat" library to make backwards compatibility easier
This commit is contained in:
@@ -88,6 +88,13 @@
|
||||
<source-file
|
||||
src="src/android/ForegroundService.java"
|
||||
target-dir="src/de/appplant/cordova/plugin/background" />
|
||||
|
||||
<framework src="com.android.support:support-compat:27.1.1" />
|
||||
<resource-file src="src/android/res/drawable/power.xml" target="res/drawable/power.xml" />
|
||||
<resource-file src="src/android/res/drawable-hdpi/power.png" target="res/drawable-hdpi/power.png" />
|
||||
<resource-file src="src/android/res/drawable-mdpi/power.png" target="res/drawable-mdpi/power.png" />
|
||||
<resource-file src="src/android/res/drawable-xhdpi/power.png" target="res/drawable-xhdpi/power.png" />
|
||||
<resource-file src="src/android/res/drawable-xxhdpi/power.png" target="res/drawable-xxhdpi/power.png" />
|
||||
</platform>
|
||||
|
||||
<!-- windows
|
||||
|
||||
Reference in New Issue
Block a user