Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Tutorial docs for Embedding the Webview > Android with AS extension are incomplete/broken #255

Open
shakeelmohamed opened this issue May 18, 2017 · 5 comments
Assignees
Labels

Comments

@shakeelmohamed
Copy link

I ran into several issues while trying to follow the directions here 😄
I'm hoping these will be fixed so I can actually start using Phonegap with Android, the iOS version of this tutorial was very easy to follow!

  • Copy everything from www-shared/www to this newly created assets/www - I don't have a www-shared directory, what am I missing here?
  • Go to Tools > PhoneGap > Install Plugin from npm - I got the following error on macOS 10.12.3 even after running npm install -g plugman, restarting Android Studio, running that command and restarting the OS:

capturfiles_3

  • I wasn't able to Go to Tools > PhoneGap > Install Plugin from filesystem either for the same reason
  • There are steps to install the Phonegap plugin in plain text in a set of bullets even though these steps are clearly outlined with screenshots at the beginning of the document (next 3 bullets are part of a screenshot):

capturfiles_6

  • There seems to be a broken footnote type link here:

capturfiles_4

  • For the following step, there is no webView variable defined in the tutorial before this usage (same goes for the following step for onNavigationItemSelected())
    Add these lines at the bottom of your onCreate method:
urls[0] = parser.getLaunchUrl();
urls[1] = urls[0].replace("index.html", "listeditor.html");
webView.loadUrl(urls[0]);
  • The tutorial sort of ends abruptly without explaining how to run the app
@imhotep imhotep added the bug label May 21, 2017
@imhotep imhotep self-assigned this May 21, 2017
imhotep added a commit that referenced this issue May 26, 2017
@imhotep
Copy link
Collaborator

imhotep commented May 26, 2017

@shakeelmohamed can you run through the tutorial again and let me know?

@shakeelmohamed
Copy link
Author

Thanks for the update @imhotep!

I'm still getting the same error from Tools > PhoneGap > Install Plugin from npm (bullet 2 in OP). I have node running though nvm if that matters. Until them I'm still pretty blocked, however the svn export commands were helpful - at least for getting those www-shared/www files

@imhotep
Copy link
Collaborator

imhotep commented May 26, 2017

@shakeelmohamed you can always install plugins manually

plugman install --plugin cordova-plugin-device|cordova-plugin-console|/path/to/plugin --platform android --project /path/to/your/android/studio/project

I cannot reproduce your issue unfortunately. I've seen one other instance like this (cc @mwbrooks )

imhotep added a commit that referenced this issue May 26, 2017
@shakeelmohamed
Copy link
Author

shakeelmohamed commented Jun 8, 2017

@imhotep Sorry for the delay. Running plugman install on the command line seems like a better workflow for me personally. I was able to get the app sort of working but the webview wasn't. I'll spend more time on this when I get a chance - thanks for the follow up 😄

@imhotep
Copy link
Collaborator

imhotep commented Jun 14, 2017

@shakeelmohamed ok let me know if/how I can assist

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants