https://github.com/pommiegranit/wp-ba...
The app I am starting from.
- 8 Posts
- 0 Reply Likes
- hopeful
Posted 4 years ago
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
Since this is your first post, please answer the following question:
- is this your first hybrid app?
- are you using Desktop App?
- are you using CLI, Build, or SDK? Please do not assume the answer, please read the link.
Thanks
Jesse
- 8 Posts
- 0 Reply Likes
Desktop App? No, I don't think so. I am using notepad++ and windows to edit, github and build.phonegap.com to build, Gennymotion and local devices to test.
And the template app I am using's config.xml has a tag which says: preferences phonegap-version 3.3.0
Still a little hazy on the differences between phone gaps.
Read the link once, bookmarked for further examination ty.
It doesn't explain how I can tell wether I'm using CLI, build, or SDK.
I know "Google and Apple frowns on using apps as wrappers for websites." still.
I have been working on this for a few days now. I should've asked for help sooner
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
It doesn't explain how I can tell wether I'm using CLI, build, or SDK.The FAQ #1 does does not explain the difference. There are no real documents to explain the difference. I may write one one-day, except working Corodova/Phonegap is a moving target.
More below.
- 8 Posts
- 0 Reply Likes
I am not familiar with executing from the command line but I can.
If building this thing in AS or XDK is what I have to do to make external links open a new browser then its probably not worth it for me.
On my website I can minimize the use of external links and add a fancy goodbye notification.
Still. If I can add some lines of java and from then on target any links out, that would be awesome!
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
okay. your thinking is way off. In short, Phonegap have four (4) components.
- HTML creates the structure of the visual.
- CSS defines the visual items; color, fonts, buttons, area (like forms) sizes, and any thing visual.
- Javascript is your control language.
- Plugins (via config.xml) add extensions on everything from hardware on the device, to communications with third-party servers.
You can also use javascript libraries to talk to HTML5-API services or MBaaS (Mobile Backend As A Service) Providers.
If you are writing Java for any reason other than a plugin, you are wasting your time.
Mobile development has a ton of warts, but that is because there are so many devices to deal with.
You should read the bold sentences in the FAQ I pointed you two earlier. Here it is:
Top Mistakes by Developers new to Cordova/Phonegap
Next read this tutorial, this will give you a better idea of what you have to do.
An HTML Boilerplate for Phonegap
The code is dated, but it works -- not sure how much longer, but tonight it works. The differences in the new version are minor, but enough to trip those that don't know.
Finally, the biggest difference between CLI, Build and SDK is that the workflow differs. They all use the same code base, but the directory structure differs. They all use the same plugins, but the workflow differs.
Read what you can. If you don't understand, say so. I or someone else will help get you onboard. Documentation is here; don't use others (see FAQ) - except for plugins (use plugin docs). If you have a questions on the docs, ask.
As for your original question, you need to add the whitelist plugin - especially if you are using the latest Android devices. AND get rid of the code base you are using as an example. IT IS WAY TOO OLD. For Build, default is cli-5.2.0; leading edge is cli-6.0.0. Cordova (the mother project) is cli-6.1.1 BLOG
Questions?
Jesse
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
@Jon - the code you posted in the other thread ( http://community.phonegap.com/nitobi/... ... imho, you were spot on there, so I'm not sure why Jesse sent you away) looks pretty good. I haven't attempted to test or debug it, but at first glance, I understand the concept and the solution, using localStorage for the transfer of the hyperlinks.
Do you have any specific questions about that code? Do you receive error messages or does the code fail somewhere?
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
I'm sure we covered this subject and I blogged it. I'm searching my blogs now.
Adding to the previous thread gains nothing. Your fascination with doing that is a source of discussion for another time.
Jesse
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
<allow-intent>, which is part of the whitelist system. I have tests from dec of 2015 we can run again - if need be.
Jesse
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
From the inappbrowser docs:
The InAppBrowser is not subject to the whitelist, nor is opening links in the system browser..
https://www.npmjs.com/package/cordova...
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
How does this affect inappbrowser?
From the Whitelist Matrix Worksheet
Jesse
- 8 Posts
- 0 Reply Likes
You have given me hope.
I will try to implement the workaround as I mentioned it in the other thread, push it to git, build it, test it and get back to you in the morning, perhaps let you see it. Ty.
@Jesse,
Yes, why not use the oldest possible working app build?
The above "WAY TOO OLD" app builds quick, is small and fires fine on every device I can get my hands on or emulate in Genny. "If it ain't broke..." No?
The only drawback with this "OLD" app I can find so-far is the retarded older kitkat default android browsers (now almost extinct) which I can target in website from webview with an "upgrade your default browser" message.
You should know. I did at one point build the app with cli-5.2.0 and the crosswalk plugin trying to fix the older kitkat issue (not worth loosing out on win and apple phones btw). That took forever and unlike this "OLD" app it didn't work in any device, probably because of a depreciated command line tag, who would do that? Its like pulling a rug out from underneath someone.
NE Ways.
Thanks
And both of you thanks for being here. This is awesome, better support than Adobe and Microsoft put together.
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
About "way too old": Jesse is right. You can't use
preferences phonegap-version 3.3.0 anymore.
With PGB3.5.0, a security issue was solved. Google refused to accept older apps anymore, more than a year ago already.
Nowadays (in fact since this week), Google won't accept an app built with anything less than PGB 'cli-5.2.0' anymore.
http://community.phonegap.com/nitobi/...
And to make things worse, Apple issued a message saying that security issues would force you to use PGB cli-6.x now.
http://cordova.apache.org/announcemen...
You should update!
- 8 Posts
- 0 Reply Likes
I have a lot to read.
I probably won't be pushing building or testing in the morning after all.
Thanks.
- 8 Posts
- 0 Reply Likes
"If you want a link to open in the device’s browser (using PhoneGap 1.5.0):
on Android, don’t list the domain in the whitelist
on iOS, list the domain in the whitelist, and then use target=”_blank” ."
Meaning, website webview apps handle external links differently in different devices despite the white list or the target?
- 8 Posts
- 0 Reply Likes
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
the blog post (Access Tags) is too dated to be accurate. It may be correct, but I see lots of read flags, namely blackberry is no longer supported and the "child browser" has been superseded with inappbrowser.
As for how external links are handled, they are all documented in the plugin documentation under "quirks". REMINDER: PGB, at this time, only support Android, iOS and Windows.
FWIW: Your order for reading documentation should be PGB docs, then plugin docs. The blog does carry "some" undocumented (or early documented) features and/or parameters, but the blog posts should mostly be used to stay abreast of the current situation. In extreme cases, a member of the PGB team will come on the forum for a few days to clear things up.
Hope this helps
Jesse
Related Categories
-
PhoneGap Framework
- 2926 Conversations
- 61 Followers
-
PhoneGap Build
- 15111 Conversations
- 275 Followers


