Android foregound service to allow background syncing #296

Manually merged
johnny9 merged 1 commit from android-service into main 2023-04-10 13:43:38 +00:00 AGit
johnny9 commented 2023-03-19 16:30:40 +00:00 (Migrated from github.com)

The idea here is to start a foreground notification service so that the process manager on android won't kill our application when in the background so that we can continue to sync without requiring the device to be awake and our activity in the foreground at all times.

Windows
Intel macOS
Apple Silicon macOS
ARM64 Android

The idea here is to start a foreground notification service so that the process manager on android won't kill our application when in the background so that we can continue to sync without requiring the device to be awake and our activity in the foreground at all times. [![Windows](https://img.shields.io/badge/OS-Windows-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/win64/insecure_win_gui.zip?branch=pull/296) [![Intel macOS](https://img.shields.io/badge/OS-Intel%20macOS-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos/insecure_mac_gui.zip?branch=pull/296) [![Apple Silicon macOS](https://img.shields.io/badge/OS-Apple%20Silicon%20macOS-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos_arm64/insecure_mac_arm64_gui.zip?branch=pull/296) [![ARM64 Android](https://img.shields.io/badge/OS-Android-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android/insecure_android_apk.zip?branch=pull/296)
johnny9 commented 2023-03-25 22:35:55 +00:00 (Migrated from github.com)

Update from 3df9234 to f62e42f:

  • Simplified the implementation greatly by not relying on qandroidextras module. Instead, the service will just be created as soon as the android Activity starts.
Update from[ 3df9234 ](https://github.com/bitcoin-core/gui-qml/commit/3df923434fdf41bcea566abcf4bbd9ad88df44d8)to f62e42f: - Simplified the implementation greatly by not relying on qandroidextras module. Instead, the service will just be created as soon as the android Activity starts.
johnny9 commented 2023-03-26 17:30:07 +00:00 (Migrated from github.com)

Update from f62e42f to dc8efb5:

  • Added missing super call in service onStartCommand method
  • Added backwards compatible startService command
  • Rebased with main
Update from f62e42f to dc8efb5: - Added missing super call in service onStartCommand method - Added backwards compatible startService command - Rebased with main
jarolrod (Migrated from github.com) reviewed 2023-03-29 08:52:13 +00:00
jarolrod (Migrated from github.com) commented 2023-03-29 08:52:12 +00:00

per feedback, It seems we could do without this

per feedback, It seems we could do without this
johnny9 commented 2023-03-31 02:46:31 +00:00 (Migrated from github.com)

Update from dc8efb5 to 06d9871:

  • Rebased with main
  • Removed notification content text
Update from[ dc8efb5 ](https://github.com/bitcoin-core/gui-qml/commit/dc8efb52b003b31868580bbea5045863708b0e67)to 06d9871: - Rebased with main - Removed notification content text
jarolrod commented 2023-04-08 16:53:45 +00:00 (Migrated from github.com)

ACK 06d9871428

This has been extensively tested with different android devices, and one device synced to tip on main

ACK 06d9871428e1c582523f023e554122f09f7a0883 This has been extensively tested with different android devices, and one device synced to tip on main
Sign in to join this conversation.
No description provided.