PhoneGap

Discussion and feedback on Construct 2

Post » Thu Sep 08, 2011 2:32 pm

Thanks man, thats quite a good head start!
B
16
S
2
G
4
Posts: 67
Reputation: 3,295

Post » Fri Oct 28, 2011 6:38 pm

[QUOTE=gammabeam] Here's the webview XCode project:

http://dl.dropbox.com/u/7324985/IOSwebview.zip

It's very rudimentary, but at least you get to see your C2 project in the iPhone/iPod screen :)

If you manage to improve it, please post it back to us! :D[/QUOTE]
The code seems promising to look at, but the link is broken. Do you still have the archive ?
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Fri Oct 28, 2011 7:08 pm

Hi Pode.
I made a Dropbox cleanup and deleted tons of things in the public folder.

Anyway, I tested phonegap and their xcode project is more robust and complete. You should definitely try it instead of my workaround!

...and there's been some movement in Scirra regarding iOS publishing, they'll probably surprise us once again! [<:o)]
B
107
S
40
G
10
Posts: 456
Reputation: 13,202

Post » Sat Oct 29, 2011 8:54 am

@gammabeam: thanks for the quick answer.
Do you know if the phonegap implementation allows for reliable audio playback ? Because for the moment, when I test code on the ipad, the execution of audio loops and SFX are very unreliable (i.e. it starts after some random delay, or not at all...)
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Sat Oct 29, 2011 9:52 am

From How to make native phone apps with Construct 2 and PhoneGap:

[quote]Our preliminary testing has shown the following:
- Audio does not yet work on most devices. Further, audio can reduce performance, even though it's not playing. You might want to remove the Audio object and delete all your audio files before exporting to PhoneGap.[/quote]

Hopefully this is something we can improve in future.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,610

Post » Sun Jan 15, 2012 6:14 pm

I've been uploding to phonegap:build and messing around trying to get the audio to work by unpacking the .apk and changing pathways. Nothing is working yet on audio for me. Has anyone had any success with this?

Here's hoping for some good news!!

Andy
B
31
S
11
G
7
Posts: 197
Reputation: 6,682

Post » Mon Jan 16, 2012 7:06 am

Since the topic has been bumped anyway, I'm playing around with PhoneGap right now (Andy sorry no audio here). Trying to get an Android app to the market.

Here's my initial feedback:

1. At least for now, functionality-wise, for me it works.

2. Permissions: for some reason, the generated app seems to require all possible permissions when installing (GPS access, personal info (read / write contact data), full internet access, storage (modify/delete SD card contents), hardware controls (change audio settings, record audio, take pictures and video), phone calls (read phone state and identity)).

I think it's a must that these get fixed, as it's unlikely that anybody is going to install a new, not-yet-famous, simple game from the market if it requires all this.

I can't find where to edit these permissions. Any hints?

3. Export settings (package name, developer info etc) have to be re-entered every time you export for PhoneGap. It would be nice if Construct 2 remembered them.

I'll post more issues as I find them. Hopefully someone can help with #2 as I'd like to get an app up-there real quick Geo2012-01-16 07:07:42
B
14
S
5
G
7
Posts: 235
Reputation: 5,175

Post » Mon Jan 16, 2012 10:29 am

Replying my own post, I (somewhat) figured out #2. You have to edit the generated config.xml file and add this line:

     <preference name="permissions" value="none"/>

Still, it will probably get overwritten when you regenerate, so an option on the export dialog (ideally one that is remembered - maybe store it in the project?) would be great!
B
14
S
5
G
7
Posts: 235
Reputation: 5,175

Post » Mon Jan 16, 2012 10:04 pm

No luck with audio in phonegap, so have ditched it for appmobi. Easy to use and sound is working! :-)
B
31
S
11
G
7
Posts: 197
Reputation: 6,682

Post » Thu Jan 26, 2012 2:38 am

When I run a simple app through PhoneGap Build, I get a warning about using local files. I followed the phonegap tutorial but it didn't mention anything about this problem.

The game seems to work, although it's my first game and literally just displays a sprite. PhoneGap doesn't seem to have any way of dealing with multiple screen sizes at all, either.
B
1
Posts: 1
Reputation: 227

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests