I'm trying to implement push notification, since Hauwei does not support Firebase / Azure Notification Hubs.
As I have it at the moment, I will have a singleton class that is injected during startup that will deal the receipt of the messages and broadcast it into the application with the weakEventManager of mvvm(I prever this pattern), but the issue is to get Hauwei wired up from a platform perspective. I do not want Hauwei libraries in the normal build and do not want google services libraries in Hauwei build. (Nice compiler directive delivery)
Does anyone know how I can achieve this?
You can achieve this by adding some logic in
build.gradle
.