-
- Downloads
Convert GcmRegistrationService to a JobIntentService. (#980)
* Convert GcmRegistrationService to a JobIntentService. Otherwise crashes might occur when app is in the background and connectivity changes on Android 8+. Fixes #953 Signed-off-by:Danny Baumann <dannybaumann@web.de> * Consistently schedule GcmRegistrationService via enqueueWork(). Signed-off-by:
Danny Baumann <dannybaumann@web.de> * Refactor all invocations of GcmRegistrationService for JobIntentService. Signed-off-by:
Danny Baumann <dannybaumann@web.de> * Override CloudMessagingHelper for test. We don't want to include the complexity of the full flavor CloudMessagingHelper in the ConnectionFactoryTest. Signed-off-by:
Danny Baumann <dannybaumann@web.de>
Showing
- mobile/src/full/AndroidManifest.xml 8 additions, 1 deletionmobile/src/full/AndroidManifest.xml
- mobile/src/full/java/org/openhab/habdroid/core/CloudMessagingHelper.java 2 additions, 7 deletions.../java/org/openhab/habdroid/core/CloudMessagingHelper.java
- mobile/src/full/java/org/openhab/habdroid/core/GcmInstanceIDListenerService.java 1 addition, 5 deletions...g/openhab/habdroid/core/GcmInstanceIDListenerService.java
- mobile/src/full/java/org/openhab/habdroid/core/GcmMessageListenerService.java 2 additions, 11 deletions.../org/openhab/habdroid/core/GcmMessageListenerService.java
- mobile/src/full/java/org/openhab/habdroid/core/GcmRegistrationService.java 47 additions, 9 deletions...ava/org/openhab/habdroid/core/GcmRegistrationService.java
- mobile/src/test/java/org/openhab/habdroid/core/CloudMessagingHelper.java 32 additions, 0 deletions.../java/org/openhab/habdroid/core/CloudMessagingHelper.java
Please register or sign in to comment