GithubHelp home page GithubHelp logo

Comments (7)

drkemp avatar drkemp commented on May 26, 2024

The current API support is tracked in the document at:

https://github.com/MobileChromeApps/mobile-chrome-apps/blob/master/docs/APIStatus.md

Some of the samples may not work on all platforms.

If you are having trouble with a specific one, please let us know which
sample app it is.

On Thu, Jan 30, 2014 at 7:05 AM, MrYogi [email protected] wrote:

i tried to run samples from
https://github.com/MobileChromeApps/mobile-chrome-app-samples
samples are running on my android device but i am getting white blank
screen.
i am able to load page successfully only in hello world sample.

what are api supported?
any sample from the link i may able to run successfully and not just white
page on device?

thanks!

my device:
nexus4 running on 4.4.2. stock.


Reply to this email directly or view it on GitHubhttps://github.com//issues/61
.

from mobile-chrome-apps.

MrYogi avatar MrYogi commented on May 26, 2024

i tried many,
for instance todomvc sample gives me blank white screen

from mobile-chrome-apps.

drkemp avatar drkemp commented on May 26, 2024

I just verified that the todomvc at

https://github.com/GoogleChrome/chrome-app-samples.git

works on Android 4.4.2 on a Nexus 7.
I am using the latest cca installed via npm

Can you verify that you have the latest tools, and where you obtained the
sample app from?

On Thu, Jan 30, 2014 at 8:24 AM, MrYogi [email protected] wrote:

i tried many,
for instance todomvc sample gives me blank white screen


Reply to this email directly or view it on GitHubhttps://github.com//issues/61#issuecomment-33686941
.

from mobile-chrome-apps.

mmocny avatar mmocny commented on May 26, 2024

The mobile supported chrome app samples are listed in a table at the bottom of the README.md: https://github.com/GoogleChrome/chrome-app-samples#mobile-support

If any of those apps are not working for you, that is not expected and we would be pleased for you to report the specific samples. Please also let us know more about your environment.

More generally -- whenever you see a blank white screen when running a chrome app on mobile via the cca tool, it is a sign of startup issues (and typically javascript syntax errors). It may be a bug in our environment startup code, since we do a bit of magic to simulate the chrome app runtime. More often it is because the application itself is relying on desktop chrome specific features that do not exist inside the mobile WebView.

The best way to find & resolve these issues is by attaching a remote web inspector, then restarting the app (while still having the inspector attached), to catch these startup issues in the console.

Here is a quick guide to do that:

  1. Launch the cordova based mobile port of your Chrome App on Android / iOS using the cca tool
  2. Attach a remote web inspector to the Android / iOS WebView by following one of these guides:
    1. Android: https://developers.google.com/chrome-developer-tools/docs/remote-debugging?hl=de
    2. iOS: http://phonegap-tips.com/articles/debugging-ios-phonegap-apps-with-safaris-web-inspector.html
  3. If your app was stuck at a blank white screen at startup, and the remote inspector console shows no useful error messages, restart the app by manually typing chrome.runtime.reload() into the console.
  4. Hopefully you will now see insightful error messages in the logs to help track down the startup issue.
  5. Please, report back to us if the error was our fault!

Best of Luck.

from mobile-chrome-apps.

MrYogi avatar MrYogi commented on May 26, 2024

as from my question you can see the link of sample apps,

mine device is 4.4.2 nexus 4

@ mmocny : i will inspect and update

thanks for your help!

from mobile-chrome-apps.

mmocny avatar mmocny commented on May 26, 2024

@MrYogi I think that @drkemp has identified the root problem here -- you are trying the wrong samples! This is our fault, we should have made that repository less discoverable and offered warnings in the README. Sorry about that!

The correct place to look for samples is: https://github.com/GoogleChrome/chrome-app-samples.git

And again, you can find the list of valid working mobile samples at the bottom: https://github.com/GoogleChrome/chrome-app-samples#mobile-support

from mobile-chrome-apps.

mmocny avatar mmocny commented on May 26, 2024

@MrYogi still interested to learn why you were seeing a white screen, but closing this as a not being an issue as currently described.

from mobile-chrome-apps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.