无法使用IONIC + MFP App在IBM Mobile第一个控制台中获取设备信息 [英] Not able to get the Device information in IBM Mobile first console with IONIC + MFP App

查看:245
本文介绍了无法使用IONIC + MFP App在IBM Mobile第一个控制台中获取设备信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将IBM Mobile首先与我的Ionic App集成。在那里,我已经添加了对IBM服务器连接的调用。

I am working with integrating IBM Mobile first with my Ionic App. In there i have added a call for a IBM server connectivity.

在那里,我可以将我的应用程序与他们的服务器连接。在我的控制台中,我可以看到,服务器已经连接。

In there i can able to Connect my App with their server. In my console i can able see like, the sever was get connected.

我的问题是,
在手机第一操作控制台中,我无法获得有关我的应用程序的任何信息。
(即)设备信息。

My issue is, In mobile first Operation console, i am not able to get any information regarding to my App. (i.e) Device information.

推荐答案

编辑:
我带了您的应用程序来自GitHub并执行以下操作:

I took your app from GitHub and did the following:


  1. 从项目的根文件夹中运行命令: cordova插件添加cordova-plugin-mfp

  2. 在app.js中添加以下代码 - > window.MFPClientDefer.promise。然后(函数wlCommonInit(){

  1. from the root folder of the project, ran the command: cordova plugin add cordova-plugin-mfp
  2. Added the following code inside app.js -> window.MFPClientDefer.promise.then(function wlCommonInit(){:

WLAuthorizationManager.obtainAccessToken().then(
    function () {       
        alert ("successfully obtained a token from the server");
    },
    function(response) {
                alert("Unable to obtain a token from the server: " + JSON.stringify(response));
    }
);


  • 执行命令: ionic build android

    然后我可以在德维ces view(TestIBM):

    I could then see the app in the Devices view ("TestIBM"):

    原始答案:

    如果您的应用程序真正成功连接到服务器(即,它已正确注册并获得了令牌),您将在设备视图中看到它操作控制台,或在Google Analytics控制台的应用视图中。

    Original answer:
    If your application truly successfully connected to the server (that is, it is correctly registered and has obtained a token), you will see it in the Devices view in the Operations Console, or in the Apps view in the Analytics Console.

    例如:

    这篇关于无法使用IONIC + MFP App在IBM Mobile第一个控制台中获取设备信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆