Leanplum / Leanplum-Android-SDK

Leanplum's integrated solution delivers meaningful engagement across messaging and the in-app experience.
https://www.leanplum.com
Apache License 2.0
46 stars 40 forks source link

Remove 'background' parameter. #403

Closed hborisoff closed 4 years ago

hborisoff commented 4 years ago
What Where/Who
JIRA Issue LP-11374
People Involved @hborisoff

Background

The 'background' parameter is not used based on the API logs and also the SDK cannot be used in the background.

hborisoff commented 4 years ago

After further investigation the reason for 'background' flag in Android SDK is that the start call is initiated from the Application class of the app. This Application class implements the singleton pattern and is created whenever the OS does need to create Activity, Service, BroadcastReceiver, Provider or other. For example when device receives push notification it creates the service that is responsible for handling that push notification without showing any UI. This is one of the cases when the SDK starts with background=true state.

Will close this PR as it is braking the implementation.