【发布时间】:2017-04-27 02:36:12
【问题描述】:
谁能解释一下或指导我阅读详细说明如何将 Rails 5 API 连接到 Phonegap 的教程。我对 Rails 比较陌生,对 phonegap 没有经验,现在一直在寻找几天来详细解释这一点的东西。我在前端使用 HTML5、CSS 和 JQuery。
非常感谢任何帮助。
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.yourname.workshop" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Workshop</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="dev@cordova.apache.org" href="http://cordova.io">
Apache Cordova Team
</author>
<content src="http://localhost:3001" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
</widget>
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-5 phonegap-build rails-api