Comments (5)
Are you referring to the app name in the manifest.json
file? A space in that value shouldn't cause a problem: it's actually part of the Chrome Spec test application, which gets built all the time.
The app name should be passed into the cordova-android/bin/create
script, which sanitizes it with:
var safe_activity_name = project_name.replace(/\W/, '');
On my machine, building Chrome Spec (App name: "Chrome Spec") results in a ChromeSpec.java
file, and a ChromeSpec activity class within it.
Do you have a sample project (or even just a manifest) that can reproduce this?
from mobile-chrome-apps.
Yes I am referring to app name in manifest.json.
It doesn't remove whitespace even on latest dev branch.
{
"app": {
"background": {
"scripts": ["background.js"]
}
},
"icons": {
"128": "img/icon128.png",
"16": "img/icon16.png",
"24": "img/icon24.png",
"32": "img/icon32.png",
"48": "img/icon48.png"
},
"description": "Best way to manage your YouTube subscriptions perfectly!",
"name": "YouTube Video Deck Dev",
"minimum_chrome_version": "29",
"permissions": [ "storage", "webview", "identity", "notifications","unlimitedStorage", "https://.ytimg.com/" ,"https://.videodeck.net/" , "http://gdata.youtube.com/","https://apis.google.com/"],
"version": "0.8.7.3",
"sandbox": {
"pages": ["ga/embedded_ga_host.html"]
},
"manifest_version":2
}
from mobile-chrome-apps.
That's really strange -- It may be possible that you have a cached version of cordova-android that is not correctly handling this. Right now, mca.js
internally invokes cordova-cli, which will look in your home directory for a hidden folder called .cordova
, and will prefer the version of cordova-android which is linked there over the version in your mobile-chrome-apps
checkout.
You can check the version there -- on my machine, I see the create script in ~/.cordova/lib/android/cordova-mca/mca/bin/create
, and its library in ~/.cordova/lib/android/cordova-mca/mca/bin/lib/create.js
. If it's wrong, I would try removing ~/.cordova
and recreating the project.
(I delete that directory all the time; its purpose is to cache packages that might otherwise be downloaded from the internet every time you run cordova, but sometimes it seems to cache a bit too aggressively).
from mobile-chrome-apps.
Just looked at that code again -- the RegExp.replace call is only going to handle the first space in the app name. I think that Andrew may be fixing that in Cordova-android, but it's definitely a bug there.
Thanks
from mobile-chrome-apps.
Just tried this, and it seems resolved.
Please re-open if thats not true.
from mobile-chrome-apps.
Related Issues (20)
- Chome.bluetooth/chrome.bluetoothsocket API not responding
- mobile chrome app does not work under ios10 HOT 9
- Video tutorial on how to Run Chrome Apps on Mobile Using Apache Cordova
- No background scripts found in your manifest.json file
- ChromeSocketsTcp.h not found in iOS project
- Getting only blank screen in iOS
- Update Cordova (android command depreciated) HOT 1
- not installing
- Ran into "Android SDK not found" error even though SDK is installed and `ANDROID_HOME` points to it HOT 4
- mobile app HOT 2
- Chrome Android 6.0 star os mobile app
- Whole document visible black in android HOT 1
- [QUESTION] Where I can find the CI service?
- background-attachment: fixed does not work on Android Chrome
- HID Support
- iOS - window.open() opens new window(tab) but back button is disabled HOT 1
- creating an online app
- ERROR: A problem occurred evaluating root project 'ZZAPP'.
- Bottom toolbar affect the normal operation of the web page
- node pull unresponsive
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobile-chrome-apps.