dashpay / dash-wallet

Dash Wallet for Android
https://dash.org
175 stars 169 forks source link

refactor: fold inactivity and upgrade services into BootstrapReceiver #1066

Closed HashEngineering closed 1 year ago

HashEngineering commented 1 year ago

Issue being fixed or feature implemented

Follow a Bitcoin Wallet change from 2019 that removed two services and handled them in BootstrapReceiver.

https://github.com/bitcoin-wallet/bitcoin-wallet/blob/master/wallet/src/de/schildbach/wallet/service/BootstrapReceiver.java

This should resolve this crash:

Fatal Exception: java.lang.RuntimeException: 
   Unable to start receiver de.schildbach.wallet.service.BootstrapReceiver: 
       android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to     mAllowStartForeground false: service hashengineering.darkcoin.wallet/de.schildbach.wallet.service.InactivityNotificationService

Caused by android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service hashengineering.darkcoin.wallet/de.schildbach.wallet.service.InactivityNotificationService

Related PR's and Dependencies

Screenshots / Videos

How Has This Been Tested?

Checklist: