Branch.io - Android:InitSessionWithData在启动应用程序时返回空响应

时间:2016-06-13 10:06:15

标签: android titanium branch.io

我正在将titanium branch.io模块与企业客户端项目集成。我使用OneSignal进行推送通知。收到推送通知后,OneSignal模块启动应用程序并触发事件" getNotificationData"。从这个事件中我解雇了branch.initSessionWithData(" Branch-URL");

此问题仅适用于Android。 iOS我用handlePushNotification()方法管理。

我得到的大部分时间" {}"响应,我无法导航特定页面。但当我强行杀死应用程序并再次启动时,现在得到分支的响应并导航到特定页面。

(KrollRuntimeThread) [2076,5122] start init with data =http://links.shukranrewards.com/shuk-enrollment
(KrollRuntimeThread) [2,5124] Uri is http://links.shukranrewards.com/shuk-enrollment
(KrollRuntimeThread) [11,5135] inside onInitFinished
(KrollRuntimeThread) [0,5135] return is not null
(KrollRuntimeThread) [0,5135] {}
(KrollRuntimeThread) [0,5135] start createSessionDict
(KrollRuntimeThread) [0,5135] data: 
(KrollRuntimeThread) [1,5136] {}
(KrollRuntimeThread) [0,5136] start parseJSONObject

1 个答案:

答案 0 :(得分:0)

来自Branch.io的Alex:遗憾的是,我们尚未通过Titanium添加对推送通知的支持。但是,既然您已经了解了如何使用iOS,我们也支持与核心Android SDK相同的机制。请参阅this document for an example

我希望你能为你的客户服务。在我们最有可能添加对Titanium的支持之前,还需要一段时间。