According to the Google FAQ on instant apps:
For example, an instant app cannot use background services, send background notifications, or access unique device identifiers.
So my main question is: what are the best practices for doing small background work for an instant app? Our installed app currently relies on JobScheduler
in our custom analytics client for sending events bulks later when network is also available.
JobScheduler
doesn't seem to work for the instant version and we kinda hoped WorkManager
would solve the problem. Switching to it seems to work only if there is no initial delay for the job that you want to run so we're kinda out of ideas how to best tackle this issue.