-
public interface IBootstrapServiceImplement and provide this interface as part of service registration to indicate the service wants to be instantiated and its bootstrap function called during the initialization process.
When IBootstrapService.bootstrap is called, only OneSignal.setAppId have been called during OneSignal.initWithContext.
This means the following is true:
An appContext is available in IApplicationService.appContext.
An appId is available in ConfigModel.appId via ConfigModelStore.get
None of the IStartableService.start is called
When bootstrap there is no guarantee that any other data is available. Typically a bootstrap service must be instantiated immediately and will add their appropriate hooks to then respond to changes in the system.