Branch.io - Android : InitSessionWithData return 启动应用时响应为空

Branch.io - Android : InitSessionWithData return empty response when launch app

我正在将 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

来自 Branch.io 的 Alex:不幸的是,我们尚未通过 Titanium 添加对推送通知的支持。但是,由于您知道如何使用 iOS 来实现,我们也支持与核心 Android SDK 相同的机制。请参阅 this document for an example

我希望你能为你的客户解决这个问题。我们最有可能添加对 Titanium 的支持还需要一段时间。