Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app不重启的情况下无法动态更新配置 #1

Open
ql0101 opened this issue Aug 31, 2020 · 2 comments
Open

app不重启的情况下无法动态更新配置 #1

ql0101 opened this issue Aug 31, 2020 · 2 comments

Comments

@ql0101
Copy link

ql0101 commented Aug 31, 2020

后台已修改某项配置数值,但在app不重启的情况下无法动态获取更新配置

@liangdong9676
Copy link

我也是遇到这样的情况。。

    // 友盟在线参数初始化,需在统计初始化之前调用!!!
    UMRemoteConfig.getInstance().setConfigSettings(new RemoteConfigSettings.Builder().setAutoUpdateModeEnabled(false).build());
    UMRemoteConfig.getInstance().setOnNewConfigfecthed(new OnConfigStatusChangedListener() {
        @Override
        public void onFetchComplete() {
            LogUtil.d(TAG, "友盟在线参数onFetchComplete");
            UMRemoteConfig.getInstance().activeFetchConfig();
        }

        @Override
        public void onActiveComplete() {
            LogUtil.d(TAG, "友盟在线参数onActiveComplete");
        }
    });

@liangdong9676
Copy link

破案了:https://developer.umeng.com/docs/119267/detail/168995

不及时更新的问题,SDK没问题,你们集成代码也没问题,关键在于你们没去友盟控制台,设置,发送策略,设置个90秒就行,因为最快只能间隔90秒,更新在线参数!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants