Some phonegap questions

0 favourites
  • I am very excited about scirra's recent experimental integration with PhoneGap.

    However I have a few questions (Keep in mind that I do not know much about this technology) If any of you know the answer, I would be happy to be enlightened ;).

    1. You note that the browser still powers the apps even though they are 'native'. What sort of performance limitations does this bring up?

    2. Will the service cost money in the future? as in monthly payments?

    3. You also note that only one sound will work at a time. Is this a limitation that will never be fixed or a simple missing feature?

    Thanks, sqiddster.

  • 1. You note that the browser still powers the apps even though they are 'native'. What sort of performance limitations does this bring up?

    Well, it runs with the same performance as it would in the browser. So it depends on the quality of the phone's javascript engine and HTML5 support. Mobiles are a bit behind desktop browsers so it might be a while before most games run really well this way. For example most mobile browsers don't yet have very fast javascript engines - but they're all moving towards fast compiled engines like desktop browsers, and they're all making moves towards hardware accelerating their canvases as well, so it should only be a matter of time until they're fast enough for most games.

    . Will the service cost money in the future? as in monthly payments?

    Possibly - it's up to PhoneGap, and I'm not sure they're certain of their plans yet, but there's a chance they'll keep a free version. Best try it out now while it's free!

    . You also note that only one sound will work at a time. Is this a limitation that will never be fixed or a simple missing feature?

    As the r66 changelog notes, it's a hardware limitation. We might be able to work around it with uncompressed WAVs but we'd have to be careful to do that in a way that means nobody can accidentally upload gigantic WAVs to their server that ruins the game download time.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • A hardware limitation? How so? That sounds odd, since phones can play more than one sound at a time.

  • They use hardware audio decoders for compressed formats (.m4a) to save battery life, but the decoder can only do one audio stream at a time. It's only designed for music playback - think of an iPod, it's not really designed for gaming. WAVs don't need decoding so can probably play on top, but it's not something I've actually tried yet so can't say for sure.

  • One noob question... how do I enable PhoneGap API audio? I just exported an app for PhoneGap with R66, but still could not get the audio to work with my android phone. I know I must have missed something.... <img src="smileys/smiley5.gif" border="0" align="middle" />

  • oriskao it should just work... hmm... is it just a simple "play sound" action?

  • I really liked the work with phonegap, but other question. Phonegap people have the objetive to work with games, ou just minor aplications for smartphones?

  • One noob question... how do I enable PhoneGap API audio? I just exported an app for PhoneGap with R66, but still could not get the audio to work with my android phone. I know I must have missed something.... <img src="smileys/smiley5.gif" border="0" align="middle" />

    Same here (Android 2.3.4, HTC Flyer); anyways, you can get sound working without limitations (excepted for the poor quality...) on Android using HTML5 and Firefox mobile!

    Ashley: What interests me is iOS - does sound work now on this platform?

    I did some testing with Phonegap 1.1.0 and 1.2.0, but neither seem to play sound, though 1.2.0 is better at displaying my game fullscreen in the iPad simulator; is it possible that sound only works when using the online Phonegap build service requiring a valid iOS developer certificate?

  • I think iOS might limit you to only playing audio when the user performs some action.

    So you might only be able to play audio in an 'on object touched' / 'on touch start' event. Try playing some audio in one of those events... it's not using the browser to play audio (it's PhoneGap's Media API) but I guess maybe the same limitation applies.

  • Thank you for the explanation, when attached to a touch event it works.

    Now I'll have to rethink the iOS version of my game based on this limitation (forget sound on start of layout, change sound volume on some action and other "sophisticated" features), but something is better than nothing!..

    Hopefully this can be solved in an upcoming Phonegap and/or C2 release!

    Do you think the restrictions with audio might be related to this: github.com/callback/callback-ios/pull/8 ?

  • Even I create an simple app just to test it, the sound still doesn't play. I have tested the app on emulator with different builds, but same result.

    https://build.phonegap.com/apps/46657/download/android

    Could you please check if this simple app play on your android device?

    (in touch > play audio)

  • Same problem here with r67 !

    Cheers !

  • About iOS version, they runs too slow to be so called "games" now in my ipad .

    Sadly, the performance can't let you be a real iOS game developer so far.

    In my opinion, the superiority of C2 is it's action performance,

    and the limitation of mobile browsers is getting in C2's way to be one of best iOS game engine.

  • Regarding the phonegap business model:

    as stated in their public source code repository License file they use a modified BSD ? MIT dual licensing model which if I recall correctly means they are giving the code away with pretty much no restrictions.

    This means that if they decide to charge for usage in the future or discontinue the project other developers can step in and fork the project.

    So they do not really have a way to "take it away" from the community.

  • What I am mainly worried about is the performance. I have not tried it out yet, but from what people have said, even simple games run incredibly slow. Will this ever be fixed to a point where C2 can be used as a competitive phone game development tool?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)