The Branch Web SDK for deep linking and attribution. Once initialized, the Branch Web SDK allows you to create and share links with a banner (web only), over SMS, or your own methods by generating deep links. It also offers event tracking, access to referrals, and management of credits.
After we have initialized the SDK with branch.init() get in the callback the field data. This field contains among others has_app. If there are no apps the value should be false. But in any case of false we got null as result.
Solution:
The condition: data['has_app'] || null, gets always null or true, because we have falsified here.
Se solution contains now a new function witch checks this case and provides the functionality to the SDK
After we have initialized the SDK with
branch.init()
get in the callback the field data. This field contains among others has_app. If there are no apps the value should be false. But in any case of false we got null as result.Solution:
The condition:
data['has_app'] || null,
gets always null or true, because we have falsified here. Se solution contains now a new function witch checks this case and provides the functionality to the SDK