android - Routing Express from polymer doesn't work in phonegap -
i'm having trouble polymer pushstate routing after compile app in phonegap. i'm trying use app-router-examples this github page.
when compile application apache cordova i'm getting blank screen on android device.
code index.html page wich main router page. of pages in /pages catalogue
<!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1"> <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="mobile-web-app-capable" content="yes"> <title>project</title> <script src="bower_components/webcomponentsjs/webcomponents.js"></script> <link rel="stylesheet" href="assets/css/styles.css" shim-shadowdom> <link rel="import" href="bower_components/app-router/app-router.html"> <link rel="import" href="bower_components/core-header-panel/core-header-panel.html"> <link rel="import" href="bower_components/font-awesome-polymer-icons/fa-icons.html"> <link rel="import" href="bower_components/font-roboto/roboto.html"> <link rel="import" href="bower_components/core-toolbar/core-toolbar.html"> <link rel="import" href="bower_components/core-header-panel/core-header-panel.html"> <link rel="import" href="bower_components/core-icons/core-icons.html"> </head> <body fullbleed> <app-router> <app-route path="/" import="/pages/home-page.html"></app-route> <app-route path="/login" import="/pages/login-page.html"></app-route> <app-route path="/main-page" import="/pages/main-page.html"></app-route> <app-route path="/password-remind" import="/pages/password-remind-page.html"></app-route> <app-route path="/password-remind-info" import="/pages/password-remind-info-page.html"></app-route> <app-route path="/report-step-one" import="/pages/raport-step-one-page.html"></app-route> <app-route path="/report-structure" import="/pages/structure-page.html"></app-route> <app-route path="/report-progress" import="/pages/progress-page.html"></app-route> <app-route path="/contact-page" import="/pages/contact-list.html"></app-route> <app-route path="*" import="/pages/not-found-page.html"></app-route> </app-router> </body> </html> and config xml
<?xml version='1.0' encoding='utf-8'?> <widget id="io.cordova.hellocordova" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <name>app</name> <description> sample apache cordova application responds deviceready event. </description> <author email="dev@cordova.apache.org" href="http://cordova.io"> apache cordova team </author> <content src="index.html" /> <plugin name="cordova-plugin-whitelist" version="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> my application structure:

link rel="import"does not work when loading web components local filesystem (e.g. using file:// schema). try vulcanize application, web components bundled index.html.
Comments
Post a Comment