【问题标题】:Issue in older android versions with branch.io in CordovaCordova 中带有 branch.io 的旧 android 版本中的问题
【发布时间】:2016-04-07 16:31:48
【问题描述】:

我正在尝试在我的 Cordova Android 应用程序中使用 Branch。在 4.4.2 以上的 android 版本中一切正常 但是,在 android 4.4.4 以下的所有版本中,Branch 都不起作用。

我已经完成了

function onDeviceReady() {
    console.log(Branch);
    Branch.initSession().then(function (res) {
       alert('something);
    }).catch(function (err) {
        alert('errref:'+err)
    });

    alert('outer alert');

}

它按预期在控制台上打印一个对象。并且在 4.4.4 以下的版本上没有其他任何事情发生 在 4.4.4+ 时,它会发出警报“某事”和“外部警报”

【问题讨论】:

    标签: javascript android cordova phonegap-plugins


    【解决方案1】:

    自 Android 4.4.4 (KitKat) 以来,权限模型发生了巨大变化。 尝试手动添加权限:

    Add the following entry to your application's config.xml:
    
    <branch-config>
        <android-prefix value="READ_FROM_DASHBOARD" />
        <host name="bnc.lt" scheme="https" />
    </branch-config>
    

    这里有很多好的文档 - https://github.com/BranchMetrics/Cordova-Ionic-PhoneGap-Deferred-Deep-Linking-SDK

    【讨论】:

    • 已经添加了这个 :( 现在我安装了较旧的 Branch 1.8.0 及其工作
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-09-24
    • 1970-01-01
    • 2018-05-02
    • 2015-07-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多