- 35 Posts
- 0 Reply Likes
Posted 5 years ago
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
(That was not a serious answer, but I suspect that your question wasn't, either.)
- 35 Posts
- 0 Reply Likes
It's about 2000 lines of code in the html file. When I emulate it on a device and press buttons to go to the next chapter (for example), it feels slow. So I'm wondering if phoneGap is the best solution for something like this.
Thoughts?
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
If so, wouldn't you like to split them up in multiple pages, only including them (using Ajax or a famework like jQM) when needed? That way, the webview doesn't need to build up a large DOM right away.
- 35 Posts
- 0 Reply Likes
Can you elaborate what you mean? So you think I should have several html files and when a btn is clicked render a different div/page from a DIFFERENT html file?
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
Do you know or use jQuery Mobile? It supports such architecture excellently and performs the page inclusions and transitions for you.
- 35 Posts
- 0 Reply Likes
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
As a result, your whole app is set up as a traditional website with html documents for each 'page'.
- 35 Posts
- 0 Reply Likes
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
See for instance http://thehungrycoder.com/javascript-...
- 35 Posts
- 0 Reply Likes
Another question I had was regarding the in app purchases for iOS and Android. I know there is a plugin for iOS, how about Android?
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
And do you think this will solve the performance issue?Can't tell. You wrote something about "emulator" and "feeling slow". I would guess that things could be different on real life devices without emulator, and also that someone else would not perceive it as slow. Remember that PGB apps run as parsed and interpreted html in webviews, which is always slower than native bytecode in native (list-, grid- and whatnot-) views. Often, PGB apps may not be expected to be lightning fast.
Then there is the amount of data which you read through an online connection, which might slow down page transitions.
If it was me, I wouldn't consider the number of code lines the most important cause for possible slow page transitions. That's why I initially replied a bit ironically. On a perceived slow application, I would first try to find out (benchmarking) where the bottle necks are, and only after finding a root cause, I would start thinking about possible solutions. In such cases it wouldn't make sense deciding on solutions for not yet defined problems.
- 35 Posts
- 0 Reply Likes
thanks again
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
But in fact, you are more worried about perceived application speed, so your best test would be to install your PGB built apps on various test devices and play around. Have others play around, too, and comment on the app.
I am unsure why you say "without phonegap build", because PGB only builds the app in various ways, so you can download and test the result (.apk, .ipa and .xap files).
BTW: is it really important that the app feels like a fast program? I ask, because you said it was an eBook app. And I wouldn't expect eBook apps to require blazing transition speed. People can wait for half a second longer before they flip the page, right?
- 35 Posts
- 0 Reply Likes
My last challenge is trying to incorporate IAP for both iOS and Android. I've seen some tutorials online but they are all for older versions of Itunes connect. I have 3 in non-consumbable in app purchases I would like to add, but can't find a good tutorial.
Do you know of any?
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
But one of the most used plugins is this one:
http://plugins.cordova.io/#/package/c...
The documentation of the plugin looks promising, the plugin appears to be 'alive' (last update: 2 months ago,version 3.10.1).
Other plugins can be found here:
http://plugins.cordova.io/#/search?se...
If you have any questions about such plugins, you can either ask the author directly (mail address in plugin documentation) ar start a new thread - here or at stackoverflow.
- 35 Posts
- 0 Reply Likes
Last question before I take it to a new thread.
thx
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
There are just a few alternative options, and they may all be less desirable:
- create and manage your own private plugin
- refrain from offering in-app products (you could sell through a linked website, which is shown in the system browser, away from the app)
- refrain from selling anything (free app, period)
....or use such plugin and hope for the best.
Whichever option you pick, it is definitely a good idea to have a 'termination strategy' for cases where you must suddenly discontinue your app. No app will live forever, so actually every app owner should have an exit strategy prepared.
- 35 Posts
- 0 Reply Likes
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
From Apple:
Apps that link to external mechanisms for purchases or subscriptions to be used in the App, such as a "buy" button that goes to a web site to purchase a digital book, will be rejected
So, if such product cannot be used in your app, it's all OK. If you are selling articles that are directly used within the app, such as eBooks, postcards or additional 'lives' in a game, then yes, you must use IAP and support Apple financially.
- 35 Posts
- 0 Reply Likes
Sorry if I was not clear in the last email.
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
- 35 Posts
- 0 Reply Likes
Sorry to reply to this thread again, but I posted on another thread and haven't heard from anyone. When I submit my app to PGB and download the ipa file, I sync it with my itunes and put it on mu phone but it gets stuck on the 'Installing..." loop and doesn't finish.
I have the latest version of PG in my file 3.6.3
I also tried recreating the certificates and ID's in apple's developer site
What do I need to do to fix this?
Thanks so much
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
- it may be a distribution file, not development
- if development, it may not have your device or the correct AppId included
- it could also be the certificate: is it a wildcard certificate?
- 35 Posts
- 0 Reply Likes
I don't think it's a wildcard certificate. I followed a pretty detailed tutorial on how to create all the files. https://www.youtube.com/watch?v=f3Y1a...
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
For App IDs and Devices, see
https://developer.apple.com/library/i...
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers


