[Plugins] Construct2 Cordova Plugins

Post your completed addons to share with the community

Post » Sun Apr 03, 2016 2:25 am

But again... it's most likely not Cranberrygame's case so no point to bother him. It's common issue with Appodeal's plugin.

See here:
someone-have-a-look-at-my-intel-xdk-appodeal-project_t170590
tr-free-knowledge-1_t170722
ImageImageImage
B
31
S
19
G
82
Posts: 1,039
Reputation: 46,207

Post » Sun Apr 03, 2016 6:32 am

The question is not about appodeal anymore). I need solve problem "unknown error SIGN_IN_REQUIRED (4)"
The whole life is in the movement.Stopped - fell asleep to hell...
B
14
S
3
G
1
Posts: 122
Reputation: 1,694

Post » Sun Apr 03, 2016 11:52 pm

Anyone?
The whole life is in the movement.Stopped - fell asleep to hell...
B
14
S
3
G
1
Posts: 122
Reputation: 1,694

Post » Tue Apr 26, 2016 5:52 pm

Same problem too.. Anyone?
B
57
S
35
G
16
Posts: 232
Reputation: 13,768

Post » Mon May 02, 2016 6:10 pm

Hello everybody, my apologies for my English in advance (yeah... French...) :)

Sorry to bother you, but do any of you understand how the "cordovafile" plugin works?

I mean : I exported the capx on APK as a charm, but I can't figure out where the file "myfile.txt" from the project is stored ? I can't see it on the capx, and though it does tell me the file is on the phone when I use the app (I can copy, write, type, etc.), I can't seem to find it on the phone browser.

I need this feature to export JSON files which contain custom levels created by users on my app, for the "download as" command that works on the computer doesn't do any help on my phone.

Any help would be greatly appreciated, thank you in advance.

Regards.
B
10
S
3
Posts: 6
Reputation: 664

Post » Thu May 05, 2016 7:05 am

brandnewman wrote:Hello everybody, my apologies for my English in advance (yeah... French...) :)

Sorry to bother you, but do any of you understand how the "cordovafile" plugin works?

I mean : I exported the capx on APK as a charm, but I can't figure out where the file "myfile.txt" from the project is stored ? I can't see it on the capx, and though it does tell me the file is on the phone when I use the app (I can copy, write, type, etc.), I can't seem to find it on the phone browser.

I need this feature to export JSON files which contain custom levels created by users on my app, for the "download as" command that works on the computer doesn't do any help on my phone.

Any help would be greatly appreciated, thank you in advance.

Regards.

Allright, I found out what the problem is : the cordova file plugin is actually saving files in a directory which needs your phone to be rooted so that you can access them ("/data/data/com.yourname.myapp/files/files/").

That's weird, for the documentation of the plugin tells you that the path you specify is "relative to external storage (SD card) root ex) "myfile.txt", "mydir/myfile.txt".

Is there any way to move the path of your written files, for any path I specify leads to "/data/data/com.yourname.myapp/files/files/mydir" (etc.) ?

Thank you to anybody who has the answer.

Cheers.
B
10
S
3
Posts: 6
Reputation: 664

Post » Thu May 05, 2016 4:31 pm

brandnewman wrote:
brandnewman wrote:Hello everybody, my apologies for my English in advance (yeah... French...) :)

Sorry to bother you, but do any of you understand how the "cordovafile" plugin works?

I mean : I exported the capx on APK as a charm, but I can't figure out where the file "myfile.txt" from the project is stored ? I can't see it on the capx, and though it does tell me the file is on the phone when I use the app (I can copy, write, type, etc.), I can't seem to find it on the phone browser.

I need this feature to export JSON files which contain custom levels created by users on my app, for the "download as" command that works on the computer doesn't do any help on my phone.

Any help would be greatly appreciated, thank you in advance.

Regards.

Allright, I found out what the problem is : the cordova file plugin is actually saving files in a directory which needs your phone to be rooted so that you can access them ("/data/data/com.yourname.myapp/files/files/").

That's weird, for the documentation of the plugin tells you that the path you specify is "relative to external storage (SD card) root ex) "myfile.txt", "mydir/myfile.txt".

Is there any way to move the path of your written files, for any path I specify leads to "/data/data/com.yourname.myapp/files/files/mydir" (etc.) ?

Thank you to anybody who has the answer.

Cheers.


Success ! For all of you people who met the same problem I did, here's the solution : simply add the following lines at the end of your "intelxdk.config.additions.xml" in your XDK "develop" project board.

<!-- makes the "Cordova File" plugin able to write files on other locations than root -->
<preference name="AndroidPersistentFileLocation" value="Compatibility" />
<preference name="AndroidExtraFilesystems" value="files,files-external,documents,sdcard,cache,cache-external,root" />

This will do the trick : now, when you specify a folder (for example "Documents/myfolder/") in your C2 event sheet, a new folder named "myfolder" will appear in your "documents" folder on your phone, and the file you wanted to create with the "write" command will be there ! Hope it will be useful for some of you ! Have a nice day.
B
10
S
3
Posts: 6
Reputation: 664

Post » Mon May 23, 2016 1:09 am

Axiomaltd wrote:The question is not about appodeal anymore). I need solve problem "unknown error SIGN_IN_REQUIRED (4)"


Last time I had this problem it had to do with putting the app id in the config file.
In config.xml on this line:
<plugin name="https://github.com/cranberrygame/cordova-plugin-game --variable APP_ID='YOUR-APP-ID-HERE'" source="npm" />
You need to grab your app id from the Google Play Dev Console and paste it every time you export from Construct 2. Every time you export it gets overridden back to the default text.
B
6
S
3
Posts: 7
Reputation: 604

Post » Sun Jun 05, 2016 2:52 pm

Anyone else noticed sound dissapearing when using adColony Rewarded Video?
B
25
S
11
G
9
Posts: 136
Reputation: 6,657

Post » Fri Jun 10, 2016 12:57 am

someone told me i'd find a Phonegap BluetoothSerial plugin here? Where did it go??
B
40
S
15
G
4
Posts: 426
Reputation: 5,870

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest