Meteor build apk没有在手机上运行

时间:2016-07-22 13:23:03

标签: android jquery-mobile meteor meteor-react

我正在尝试在Android手机中安装meteor中的应用程序。该应用程序是通过

构建的

meteor build /home/sampad/meteor_apk --server 192.168.1.27:3000

此应用由2个模板组成。当我点击提交时,通过meteor在桌面上运行时,我会转到下一个模板。但是当在移动设备上运行时,单击提交按钮不会带我到任何地方,也看不到任何错误。

附加代码:

<!-- main.html -->
<body>
<nav class="navbar navbar-inverse">
        <div class="container-fluid">
         <div class="navbar-header">
                    <a class="navbar-brand" href="#">Accounts Page</a>
                </div>
    </div>
</nav>
            <div class="container">
            {{#if currentUser}}
            {{>dashboard}}
            {{else}}
                 {{> register}}

                 {{> login}}
            {{/if}}

            <hr>

            </div>

<template name="register">
    <form>

        <h3>Registration Page</h3>
        E-mail :   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type ="text" id="email"><br>
        Password : <input type="password" id="password"><br>
        <input type="submit" value="Save details"> &nbsp; <input type="reset" value="Reset">
    </form>
</template>

<template name="login">
    <form>
        <h3>Log In Page</h3>
        E-mail :   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type ="text" id="login-email"><br>
        Password : <input type="password" id="login-password"><br>
        <input type="submit" value="Log In"> &nbsp; <input type="reset" value="Reset">
    </form>
</template>

<template name="dashboard">
     <p> You 're logged in </p>
     <p><a href ="#" class="logout" >Log Out</a></p>
</template>

<!-- main.js -->
    if(Meteor.isClient)
{
    Template.register.events({
        'submit form':function(event,template){
        event.preventDefault();
        var emailVar = template.find('#email').value;
        var passwordVar = template.find('#password').value;
        //template.find('#message').append("Clicked submit");
        console.log('Form submitted');
        Accounts.createUser({
            email:emailVar,
            password:passwordVar        
        });
        }
    });

    Template.login.events({
        'submit form':function(event,template){
        event.preventDefault();
        var emailVar = template.find('#login-email').value;
        var passwordVar = template.find('#login-password').value;
        Meteor.loginWithPassword(emailVar,passwordVar);
        }
    });

    Template.dashboard.events({
    'click.logout':function(event){
    event.preventDefault();
    Meteor.logout();
    }
    });
}

1 个答案:

答案 0 :(得分:0)

也许尝试明确指定要到达服务器的协议?

std::auto_ptr<ClassA> ptr1(new ClassA); //ok std::auto_ptr<ClassA> ptr2 = new ClassA; //error