-2

I am getting BranchSDK: returned {} as response when i use Branch.getInstance().setIdentity("your_user_id");

Sharanjeet Kaur
  • 796
  • 13
  • 18

1 Answers1

0

if you want a branch instance back use this method
Branch branch = Branch.getAutoInstance(context,"your branch key");

as per the docs

Singleton method to return the pre-initialised, or newly initialise and return, a singleton object of the type Branch.

After that use can use singleton Branch object throughout your appp

Aniruddha K.M
  • 7,361
  • 3
  • 43
  • 52