Marvin W
a7b2b7e3f8
Add profile manager
2022-01-14 10:39:10 +01:00
Torsten Grote
00a06d4b94
Don't reconnect to gcm when opening settings
...
This doesn't treat the underlying issues and can make debugging harder if we suddenly auto-connect due to this.
Change-Id: I9c04c78e8ebda8472b0cd8c7b0b0deb2e2300139
2021-11-03 13:02:51 +01:00
Torsten Grote
14d666a163
Do a check-in if we are not actually checked in, but should be, e.g. cleared app data
...
Change-Id: If800339fa35644d8783203fbd511128457d6d101
2021-11-03 13:02:51 +01:00
Torsten Grote
1367649a18
Lower heartbeat interval when we find the connection reset when wanting to send a message
2021-11-03 13:02:51 +01:00
Torsten Grote
aa3a2d65cd
Refactor settings access to use a SettingsProvider
...
to enable safe usage of settings no matter which process is getting/setting them.
Previously, different processes were accessing settings in an unsafe way and the warn methods were throwing Runtime exceptions which went largely unnoticed, but happened, especially on a fresh start of the OS.
Change-Id: Ie4134e7be2a7ca4a373790f45fbcbd09bf02ad86
2021-06-27 22:39:15 +02:00
Marvin W
c9e09e9714
Use Cursor.getColumnIndexOrThrow()
2021-03-17 19:38:34 +01:00
Marvin W
ecfe3da3f7
Wakeful receivers only handle non-null intents
2021-03-09 22:21:25 +01:00
Marvin W
68a16af53b
Change background service notification
...
Fixes #1324
2020-12-21 21:46:03 +01:00
Marvin W
c648883128
UI: Move advanced GCM configuration get/set off ui process
2020-12-20 19:29:51 +01:00
Marvin W
f0337b5dcd
Move EN and GCM service in persistent subprocess
...
This increases stability/durability of these services in case of crashes
2020-12-20 19:29:50 +01:00
Marvin W
3db548187d
Workaround for Android 8.0 NotificationChannel bug
...
Fixes #1312
2020-12-14 10:04:39 +01:00
Marvin W
a95f6449f5
GCM: Fix apps not always whitelisted from powersave
...
Fixes #1188
2020-10-18 10:20:41 +02:00
Marvin W
26f2e859b8
Ensure checkin before gcm registration, fix gcm permission requests
2020-10-15 22:08:05 +02:00
Marvin W
a2afbe07fd
Only apply preferences when they actually changed
2020-09-13 02:14:32 +02:00
Marvin W
6ec8332b1e
GCM: Ensure we have a context for preferences
2020-09-09 00:49:05 +02:00
Marvin W
d641ca7e7e
Fix UI mismatching actual configuration due to multiprocess
2020-09-03 00:50:39 +02:00
Marvin W
60cc63ed60
GCM: Add support for message acking, deliver to all receivers of package when working permissionless
2020-08-22 23:43:14 +02:00
Marvin W
3c2119ce79
Migrate to latest Wire library, build directly from proto
2020-08-01 22:34:53 +02:00
delthas
f199f902b1
Fix GCM heartbeat interval for roaming connections with manual interval
...
When using GCM on a roaming connection, the heartbeat interval is set
to: `networkRoaming * 6000`. It should instead be
`networkRoaming * 60000` because we're converting from a number of
minutes (stored in the properties) to a number of milliseconds, like
it's done for regular mobile and wifi connections.
2020-07-26 15:43:46 +02:00
Marvin W
ed68a9482e
Add initial basic provisioning service
2020-07-26 13:40:09 +02:00
Marvin W
74213474b5
GCM: Do not require receiver permission for target app
2020-07-09 11:39:43 +02:00
georgeto
5146559f89
Fix FCM registration for apps using firebase >= 20.1.1
...
With version 20.1.1 the Firebase Cloud Messaging SDK started to use
the Firebase Installations SDK, which affects the FCM registration
process.
The implementation of FCM registration in microG failed to pass extra
parameters that became relevant with the introduction of the
Firebase Installations SDK to the FCM registration endpoint.
These additional parameters are passed through to the endpoint with an 'X-' prefix.
2020-07-09 10:27:53 +02:00
Marvin W
895c74d095
Huge merge/refactor/update
2020-07-08 22:49:27 +02:00
Marvin W
db4bb568e1
Run GCM services as foreground service if needed
...
That's when we run with battery optimizations disabled but not in foreground
2019-12-04 23:14:58 +01:00
voidstarstar
5875ab752b
Move some expensive reflection calls to onCreate
2019-04-22 19:56:51 +02:00
voidstarstar
60023887d1
Temporary whitelist support for Doze ( #732 )
...
Fixes #338
Co-Authored-By: @ccaapton <6211551+ccaapton@users.noreply.github.com>
Co-Authored-By: @ale5000-git <15793015+ale5000-git@users.noreply.github.com>
2019-04-21 16:39:18 +02:00
Moritz Horstmann
652d7a9104
Include GCM message ID in app message intent
2019-04-20 15:09:58 +02:00
voidstarstar
7b651aaaad
Unregister app if fully removed or data is cleared
...
This fixes a bug where apps were not properly unregistered on Android
8.0+ systems. Also update the log message.
2019-04-13 10:44:41 +02:00
Marvin W
719cd51d3d
Push Messaging: Handle more edge cases, fix some apps not showing up as registered
2018-09-21 21:44:43 +02:00
Marvin W
7bbdcac990
Handle NetworkInfo being null
2018-08-28 14:18:26 +02:00
Marvin W
f94d140dea
Only require C2D_MESSAGE permission when defined
2018-08-28 14:13:49 +02:00
Marvin W
9e0ee103a1
Fix push messaging registration for some apps
2018-08-28 14:13:49 +02:00
Marvin W
d9e86d960d
Increase version code, update sublib and copyright header
2017-06-13 00:34:09 +02:00
Marvin W
b0a06e7d7d
gcm/iid: add request id to iid responses
...
was optional before but is required for firebase iid
- fixes bug with riot dev version reported in #313
- might be related to comment 2 in #322
2017-05-01 13:15:19 +02:00
Marvin W
01f154dcdb
Configure GCM by network type and automatically learn ping interval
...
Related to: #187 #192
2017-05-01 13:15:18 +02:00
Marvin W
d99fa7e86f
Directly start/stop GCM service if setting is changed in UI
2017-02-08 14:17:17 +01:00
Marvin W
050a78569d
Add FLAG_ACTIVITY_NEW_TASK when showing permission dialog for GCM, fixes #270
2017-01-15 22:53:17 +01:00
Marvin W
05a8b44f2d
Various fixes
...
related to #86 , #164 , #242
2016-12-23 19:02:05 +01:00
Marvin W
ef9e9b0921
GCM: fix display of uninstalled apps, do not allow registration if GCM is disabled (it won't succeed anyway)
2016-12-02 16:44:50 +01:00
Marvin W
97f4c82172
GCM improvements
...
- Add upstream message support (#228 )
- Improve support for 7.0+ (#226 )
- don't start closed apps if disabled (#230 )
- ask after denying registered app (#230 )
- automatically unregister apps on uninstall
2016-11-20 20:37:31 +01:00
Marvin W
5316e0220a
Squashed commit
...
- Update all submodules, used sdk version, etc
- Settings UI rebuild
- Some GCM features and fixes
- Fix newest Cast Framework for some apps (tested with "ZDF Mediathek")
Fixes #224 , #223 , #145
2016-11-16 01:03:17 +01:00
Marvin W
db93985e28
Fixup 33a6137
2016-09-17 02:22:04 +02:00
fiaxh
33a6137aec
Screen showing GCM registered apps + infos + unregistration option
2016-09-17 01:43:50 +02:00
Marvin W
6b9fc62bac
Set default gcm heartbeat interval to 5m
2016-08-29 18:00:18 +02:00
Marvin W
70119087fe
Ensure all threads to be closed
...
Fixes possible OOM error
2016-05-18 14:10:17 +02:00
Marvin W
016d2ca3f4
Refactor GCM Service, fix #129
2016-05-12 01:07:22 +02:00
Marvin W
60b2eaec25
Add support for collapse_key
...
related to #104
2016-04-18 10:29:52 +02:00
Marvin W
2a394f98aa
Various changes
...
- Extend Wear support
- Rework Gms Services
- Fix ProGuard
- Add Waze to Google Whitelist (as in original Play Services, fixes #116 )
2016-04-14 21:55:07 +02:00
Marvin W
16142899fc
Checkin before registering for push
2016-03-23 22:42:53 +01:00
Marvin W
67b1ac74e8
Various small fixes
...
- Add two Google signatures to acceptable apps. Likely to increae this further
- Fix small change in GCM unregistering
- Modify intent delivery for GCM, related to #75 and #84
- Lint fixes
- Update Travis CI config
2016-02-08 03:38:07 +01:00