Page 97 of 107

Re: [Plugins] Construct2 Cordova Plugins

PostPosted: Sun Apr 03, 2016 2:25 am
by Toby R
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

Re: [Plugins] Construct2 Cordova Plugins

PostPosted: Sun Apr 03, 2016 6:32 am
by Axiomaltd
The question is not about appodeal anymore). I need solve problem "unknown error SIGN_IN_REQUIRED (4)"

Re: [Plugins] Construct2 Cordova Plugins

PostPosted: Sun Apr 03, 2016 11:52 pm
by Axiomaltd
Anyone?

Re: [Plugins] Construct2 Cordova Plugins

PostPosted: Tue Apr 26, 2016 5:52 pm
by odiusfly
Same problem too.. Anyone?

Re: [Plugins] Construct2 Cordova Plugins

PostPosted: Mon May 02, 2016 6:10 pm
by brandnewman
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.

Re: [Plugins] Construct2 Cordova Plugins

PostPosted: Thu May 05, 2016 7:05 am
by brandnewman
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.

Re: [Plugins] Construct2 Cordova Plugins

PostPosted: Thu May 05, 2016 4:31 pm
by brandnewman
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.

Re: [Plugins] Construct2 Cordova Plugins

PostPosted: Mon May 23, 2016 1:09 am
by dhalvin
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.

Re: [Plugins] Construct2 Cordova Plugins

PostPosted: Sun Jun 05, 2016 2:52 pm
by Wishy
Anyone else noticed sound dissapearing when using adColony Rewarded Video?

Re: [Plugins] Construct2 Cordova Plugins

PostPosted: Fri Jun 10, 2016 12:57 am
by blurymind
someone told me i'd find a Phonegap BluetoothSerial plugin here? Where did it go??