BranchMetrics / sdk-release

TUNE iOS, Android, and Windows native SDKs
https://developers.tune.com/sdk/quick-starts/
GNU General Public License v3.0
56 stars 46 forks source link

Fixed getInstance() returning null value #10

Closed esoxjem closed 8 years ago

esoxjem commented 9 years ago

Added lazy initialization to singleton object.

theScud commented 8 years ago

Guy please look that this pull request seriously i am dealing unable to use mat sdk to track required funnels because if it

john-gu commented 8 years ago

Hi, this PR does not initialize the MobileAppTracker correctly in getInstance() without the application context. If you would like a global singleton I suggest initializing and keeping the singleton at the Application level. If you need assistance or examples on how to do this, please let us know.