简体   繁体   English

如何在Windows 7计算机上构建Urban Airship PhoneGap?

[英]How to build Urban Airship PhoneGap on Windows 7 machine?

I'm new to PhoneGap. 我是PhoneGap的新手。

I'm trying to implement Urban Airship ( https://github.com/urbanairship/phonegap-ua-push/ ) in my project. 我正在尝试在我的项目中实施Urban Airship( https://github.com/urbanairship/phonegap-ua-push/ )。

I followed the tutorial and finished with building the app on PhoneGap build (online). 我按照教程学习,并完成了在PhoneGap构建(在线)上构建应用程序的工作。 But it seems that cloud-based phonegap build ( build.phonegap.com ) does not support urban airship. 但是,似乎基于云的phonegap构建(build.phonegap.com)不支持城市飞艇。

Or am I missing something here? 还是我在这里想念什么?

If so, how can I build this UA app (ios and android) on my Windows 7 machine? 如果是这样,如何在Windows 7计算机上构建此UA应用程序(iOS和android)?

Thanks 谢谢

You can always install Apache Cordova That will allow you to build your .ipa and .apk on you local machine. 您始终可以安装Apache Cordova,这将允许您在本地计算机上构建.ipa和.apk。 However with the Adobe cloud solution you should be able to download your applications by clicking on the buttons at the bottom of your apps admin page. 但是,使用Adobe云解决方案,您应该能够通过单击应用程序管理页面底部的按钮来下载应用程序。

纽扣

It also looks like you need to include the UA native plugin code. 看起来您还需要包含UA本机插件代码。

phonegap local plugin add https://github.com/urbanairship/phonegap-ua-push.git

This will add the plugin for Cordova on your local machine. 这将在您的本地计算机上添加Cordova插件。 You can take a look at the available plugins on the plugins page . 您可以在“ 插件”页面上查看可用的插件 A quick search did not turn up anything for UA. 快速搜索没有发现UA的任何内容。 You can also submit plugins for approval here. 您也可以在此处提交插件以供批准。 However the plugin must be licensed under the MIT or Apache 2.0. 但是,该插件必须在MIT或Apache 2.0下获得许可。 Which it looks to be. 看起来像是。 Once the plugin is approved I assume you can just add the plugin to your config.xml file. 插件获得批准后,我假设您可以将插件添加到config.xml文件中。

<gap:plugin name="com.phonegap.urbanairship.plugin" version="1.0.0" /> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM