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

请问双平台怎么配置呢? #3

Open
gulullu opened this issue Dec 21, 2016 · 2 comments
Open

请问双平台怎么配置呢? #3

gulullu opened this issue Dec 21, 2016 · 2 comments

Comments

@gulullu
Copy link

gulullu commented Dec 21, 2016

Umeng.Analytics.config({
    appkey: 'your_app_key', 
    channel: 'your_channel'
}, function () {
    alert("友盟API初始化成功");
}, function (reason) {
    alert("友盟API初始化失败");
});

这里的初始化只有一个平台,iOS和Android都配置的话怎么整呢?

有个demo最好了

@hanyou
Copy link

hanyou commented Dec 29, 2016

应该判断当前是什么平台,然后传进去不同的key吧

@songlipeng2003
Copy link

我是这样实现的,应该是ok的

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

3 participants