Commit Graph

253 Commits

Author SHA1 Message Date
Nathan Kerr
e11ee4f432 Apparently I don't know how to combine flags correctly
Closes #47
2022-08-25 14:22:50 -07:00
Nathan Kerr
d1d6396c07 Merge branch 'master' of bitbucket.org:TheBosZ/cordova-plugin-run-in-background 2022-04-22 09:06:11 -07:00
Nathan Kerr
8bc19edeb4 Fix for PendingIntent mutability and AndroidX 2022-04-22 09:01:07 -07:00
Nathan Kerr
df990e762f Merged in kerr/migrate-to-androidx (pull request #6)
Change from support library to androidx
2020-11-16 18:37:13 +00:00
Nathan Kerr
b33044c8e5 Merge branch 'master' of bitbucket.org:TheBosZ/cordova-plugin-run-in-background 2020-06-08 12:19:15 -07:00
Nathan Kerr
4d98947310 Add fix for moveToForeground. Requires new permission for Android 10 2020-06-08 12:19:04 -07:00
Jesper Charles Balslev
77767cab9b Merged in JesperBalslev/cordova-plugin-run-in-background (pull request #5)
Prevent sound/music from stopping when opening the app on iOS. Also prevents embedded videos (youtube) from pausing when unmuted.

* Previous fix wasn't backwards compatible with versions older than 12.2. This fixes it.

* Fixes iOS issues with backgroundMode.onactivate and backgroundMode.ondeactivate

* Prevent sound/music from stopping when opening the app on iOS. Also prevents embedded videos (youtube) from pausing when unmuted.

Approved-by: Nathan Kerr <nathankerr@gmail.com>
2020-03-24 14:00:17 +00:00
Jesper Charles Balslev
1dab2de6ec Merged in JesperBalslev/cordova-plugin-run-in-background (pull request #4)
Fixes iOS issues with backgroundMode.onactivate and backgroundMode.ondeactivate
2019-12-12 17:28:49 +00:00
Nathan Kerr
5f50704564 Merge branch 'master' of bitbucket.org:TheBosZ/cordova-plugin-run-in-background 2019-11-08 07:45:51 -08:00
Nathan Kerr
8d523e638e Don't get the engine to get the view 2019-11-08 07:45:16 -08:00
Jesper Balslev
abb6b30cf8 Merged in JesperBalslev/cordova-plugin-run-in-background/Jesper-Balslev/previous-fix-wasnt-backwards-compatible--1572444052573 (pull request #3)
Previous fix wasn't backwards compatible with versions older than 12.2. This fixes it.

This fixes it.
2019-10-30 14:07:52 +00:00
Nathan Kerr
8ad9802ea6 Fall back to application's icon
Closes #10
2019-08-29 14:20:15 -07:00
Menardi
53f3278722 Merged in Menardi/cordova-plugin-run-in-background/android_optimization (pull request #2)
Add more Android battery optimisation functions

- Go to Battery Optimization settings screen
- Add function to check if battery optimization is enabled or not
2019-08-21 20:18:23 +00:00
Menardi
0da2006f7c Merged in Menardi/cordova-plugin-run-in-background/visibility (pull request #1)
Add ability to set Android notification visibility
2019-08-20 15:40:21 +00:00
Nathan Kerr
a3063aed68 Add information about battery optimizations 2019-07-31 18:48:02 +00:00
Nathan Kerr
8d2ae55da6 Add permission for battery optimizations 2019-07-30 12:46:51 -07:00
Nathan Kerr
5bf63c3757 Updated with instructions on how to install. 2019-07-30 19:19:44 +00:00
Nathan Kerr
f0c2a98d72 Add permission for Android 28 2019-07-29 08:53:38 -07:00
Nathan
7bef96c9e7
Merge pull request #1 from centogram/master
Remove Windows platcform from plugin.xml to allow install on cordova >9
2019-04-12 15:16:24 -07:00
Jerod Fritz
3694ab729b Remove Windows platcform from plugin.xml to allow install on cordova >9 2019-04-11 21:55:12 -04:00
Nathan
c575bec180
Fix for iOS 12.2
Apply fix from https://github.com/katzer/cordova-plugin-background-mode/issues/419#issuecomment-473851949
2019-04-01 12:12:32 -07:00
Nathan Kerr
9c88bba925 Fix to only close the correct app rather than all background-mode apps
If you had two apps using this plugin running, clicking "Close" on a notification for one would close both.
2019-03-29 16:09:45 -07:00
Nathan Kerr
0e9b95013d Merge branch 'master' of github.com:fyayc-chrisat/cordova-plugin-background-mode 2019-03-11 15:08:47 -07:00
Nathan
949a9e721c
Merge branch 'master' into master 2019-03-01 15:01:05 -08:00
Sebastián Katzer
0e95173de0 Fix typo in getAppStartIntents 2019-02-11 15:27:15 +01:00
Sebastián Katzer
157b34f867 Create app start intents at runtime 2019-02-11 15:26:42 +01:00
Sebastián Katzer
5f6072e738 Fix type in clearScreenAndKeyguardFlags 2019-02-11 15:23:27 +01:00
Sebastián Katzer
2c4df332d3 Restructure BackgroundModeExt as an internal cordova plugin 2019-02-11 15:21:06 +01:00
fyayc-chrisat
681e3ca480
function onactivate does no longer exist
I got the error message that "onactivate" does not exist with the latest HEAD Version. I therefore investigated and found out that since the on() function has been changed, I think this has been forgotten to also be changed in the Java file.
2019-02-10 19:25:25 +01:00
Sebastián Katzer
8fbf210e14 Initial implementation for openAppStartSettings 2019-02-10 13:09:57 +01:00
Sebastián Katzer
a9669052c0 REQUEST_IGNORE_BATTERY_OPTIMIZATIONS needs to be added manually 2019-02-10 11:22:11 +01:00
Sebastián Katzer
537f7a859f New "disableBatteryOptimizations" function for Android 2019-02-08 18:45:03 +01:00
Sebastián Katzer
9fb7257297 Change some formats 2019-02-08 18:33:54 +01:00
Nathan Kerr
79e8150d3e Option to turn off notification timer
Android notifications have a "how long ago was this notification set" timer.

Now there's an option to turn that off (the default is true, so it's shown, matching current behavior).
2019-02-04 13:57:06 -08:00
Nathan Kerr
167245b0b9 Remove extra lines. 2019-02-04 11:36:29 -08:00
Nathan Kerr
d43e451763 Fix from merge 2019-02-04 11:34:04 -08:00
Nathan Kerr
70495eddb0 Merge branch 'master' of https://github.com/katzer/cordova-plugin-background-mode 2019-02-04 11:27:37 -08:00
Nathan Kerr
32de5cb848 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
2019-02-04 11:18:34 -08:00
Sebastián Katzer
4c157f4509 Some more improvements to fix #325 2019-02-03 16:17:15 +01:00
Sebastián Katzer
6b522e9832 Some fixes and enhancements for Android 2019-02-03 15:58:40 +01:00
Marco Sirini
b5950b578d Added notification support for Android 8 (#389)
* Added notification support for Android 8

Channel ID for notification

* Update ForegroundService.java

* Delete ForegroundService.java

* Update ForegroundService.java

* SetImportance

Add setImportance when SDK >= 26

* SetImportance

rm SetImportance

* Update README.md

* Revert "SetImportance"

This reverts commit 9535246bf3c32bb57f91f61ea82698600ff94f31.

* Revert "SetImportance"

This reverts commit 6f5e5e8bc3fc2dff7d0abcea901df12d8516f800.

* Revert "Update README.md"

This reverts commit 65c69077ab948193147627319a6266c765822831.

* Update README.md

* Revert "Update README.md"

This reverts commit 9cbe65e7da02c36b0de7039597f5b9a472edd19e.
2019-01-31 18:26:29 +01:00
Dimitrios Matanis
a2352f5d8b service stuck on swipe away fix (#304) 2018-01-09 20:51:50 +01:00
Stephan Kristyn
7285bec9e0 fix for fatal crash on app open (#315)
* bugfix for WKWebViewEngine app crash

* fixing package.json

* fixing package.json

* reverting package.json for pull request

* reverting package.json for pull request
2018-01-09 20:47:49 +01:00
Soramister
e939b13738 Compatibility with homerours/cordova-music-controls-plugin plugin on iOS devices (#274)
* Update plugin.xml

* Update APPBackgroundMode.m
2018-01-09 20:46:33 +01:00
Sebastián Katzer
03f221e873 Regenerate package.json with plugman 2017-09-03 11:09:51 +02:00
imchrg
73621dc910 Fix incorrect method. (#295) 2017-07-05 11:17:22 +02:00
steedems
e9f072210e android: remove singleInstance launchMode, add SINGLE and CLEAR TOP flags to the intent (#290) 2017-06-14 22:00:38 +02:00
Ibby Hadeed
609ba41ae0 fix typo (#256) 2017-03-27 10:38:21 +02:00
Sebastián Katzer
110ec9d024 Additional improvements of method configure 2017-02-10 20:52:42 +01:00
Sebastián Katzer
5fdfb9885c Previously configured settings got overwritten by defaults [Fixes #179] 2017-02-10 16:33:38 +01:00