Skip to content

Commit

Permalink
[CHORE] Updated initSession callback to match with iOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
renesansz committed Feb 23, 2016
1 parent e075a13 commit 81d4aed
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions testbed/www/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ app.initialize();

function DeepLinkHandler(data)
{
alert('Initialize: ' + data.data);

alert('Initialize: ' + JSON.stringify(data));
}

function SetDebug(isEnabled)
Expand All @@ -72,17 +71,7 @@ function InitSession()
{
console.log('Trigger InitSession()');

if (navigator.userAgent.indexOf('iPhone') >= 0) {
Branch.initSession();
} else if (navigator.userAgent.indexOf('Android') >= 0) {
Branch.initSession().then(function (res) {
console.log(res);
alert('Initialize: ' + JSON.stringify(res));
}, function (err) {
console.error(err);
alert(err);
});
}
Branch.initSession();
}

function CustomAction()
Expand Down

0 comments on commit 81d4aed

Please sign in to comment.