A implementation of a PushProcessor that should live as a singleton by being installed in the Application’s onCreate. It receives messages from a service and forwards them to be decrypted and routed.
Listen for subscription information changes for each registered PushType:
Listen also for push messages for each registered PushType:
| Name | Summary |
| <init> |
AutoPushFeature(context: <ERROR CLASS>, service:
= Executors.newSingleThreadExecutor().asCoroutineDispatcher(), connection:
senderId = config.senderId,
serverHost = config.serverHost,
socketProtocol = config.protocol,
serviceType = config.serviceType,
databasePath = File(context.filesDir, DB_NAME).canonicalPath
? = null)
A implementation of a PushProcessor that should live as a singleton by being installed in the Application’s onCreate. It receives messages from a service and forwards them to be decrypted and routed. |
Starts the push feature and initialization work needed.
An error has occurred.
New encrypted messages received from a supported push messaging service.
New registration tokens are received and sent to the Autopush server which also performs subscriptions for each push type and notifies the subscribers.
Register to receive push messages for the associated PushType.
Register to receive push subscriptions when requested or when they have been re-registered.
Deletes the registration token locally so that it forces the service to get a new one the next time hits it’s messaging server.
Un-subscribes from all push message channels, stops the push service, and stops periodic verifications. This should only be done on an account logout or app data deletion.
Returns all subscription for the push type if available.
Notifies observers about the subscription information for the push type if available.
Returns subscription information for the push type if available.
Loads a file from the resources folder and returns its content as a string object.