getInstance



function to create an instance of PushPushGo object to handle push notifications

Return

PushPushGo instance

Parameters

application
  • an application to get apiKey from META DATA stored in Your Manifest.xml file


fun getInstance(application: Application, apiKey: String, projectId: String, isProduction: Boolean, isDebug: Boolean = DEBUG, customBaseUrl: String? = null): PushPushGo

function to create an instance of PushPushGo object to handle push notifications

Return

PushPushGo instance

Parameters

application
  • an application to handle DI

apiKey
  • key to communicate with RESTFul API

projectId
  • project identifier

isProduction
  • flag indicating if this is a production environment

isDebug
  • flag for debug mode

customBaseUrl
  • optional custom base URL for API endpoints