Page 3 of 9

Miscellaneous Issues with App

Posted: Mon Dec 30, 2013 6:20 pm
by Kateryna Grynko

Hi Joe,

I'd recommend you to share image in string base64 encoded. You can add to your plug-in support of base64 encoded images, similarly to the same plug-in for Phonegap 3.0 https://github.com/EddyVerbruggen/Soc...


Miscellaneous Issues with App

Posted: Mon Dec 30, 2013 6:47 pm
by Joe Paisley

Thanks Katya. If I'm honest, I have no idea how to use base64 encoding. Is it like adding custom javascript at "click" event on a button component, while referencing the "image" component on the "camera" page or "html" component on the "results" page? Could you please provide me a quick tutorial of how to go about this? I would be eternally grateful.


Miscellaneous Issues with App

Posted: Fri Jan 03, 2014 4:26 pm
by Joe Paisley

Have you had any spare time to explain to me how to implement this plugin?

Thank you!


Miscellaneous Issues with App

Posted: Fri Jan 03, 2014 4:45 pm
by Kateryna Grynko

Hi Joe,

You can see a description here: https://github.com/EddyVerbruggen/Soc...
Add JS as Create new - JavaScript


Miscellaneous Issues with App

Posted: Sat Jan 04, 2014 12:01 am
by Joe Paisley

Hi Katya,

I think I'm just very confused.

When I add:
code"window.plugins.socialsharing.shareViaTwitter('Message via Twitter')"/code to click event on "share to twitter" button on the "camera" page, I get this:
Image
Do you have any clues for me?

Thanks!


Miscellaneous Issues with App

Posted: Mon Jan 06, 2014 1:50 pm
by Kateryna Grynko

Hi Joe,

If you need to programmatically run another page with "full screen refersh", replace:preAppery.navigateTo('main_screen', {});/prewith:prewindow.location = 'main_screen.html';/pre


Miscellaneous Issues with App

Posted: Wed Jan 08, 2014 6:35 pm
by Joe Paisley

I'm not sure what you mean Katya. Are you saying that

codewindow.location = 'main_screen.html'; /code

should be in click event for "share on twitter" button on "camera" page? Is there any additional data mapping that has to take place?

Image

Does 'main_screen.html' refer to the "cameraimage" component?

Thanks very much!


Miscellaneous Issues with App

Posted: Thu Jan 09, 2014 6:50 pm
by Maryna Brodina

Hello! Working on it...


Miscellaneous Issues with App

Posted: Fri Jan 10, 2014 10:00 am
by Kateryna Grynko

Hi Joe,

Sorry, forget my previous answer. Did you add and change files listed here https://github.com/EddyVerbruggen/Soc... ?

As for base64 - take a look at here please: http://stackoverflow.com/questions/24...


Miscellaneous Issues with App

Posted: Fri Jan 10, 2014 10:27 pm
by Joe Paisley

I believe the plugin is successfully installed, but I wouldn't know how else to verify. Is the btoa() function more suitable for this task? Something like this javascript code on "click" event:

code
var str = "cameraimage&quot
var enc = window.btoa(str);

document.getElementById("cameraimage")

window.plugins.socialsharing.shareViaTwitter('Message and link via Twitter', null, 'window.plugins.socialsharing.shareViaTwitter('Message and link via Twitter', null, 'http://www.x-services.nl'))"

/code

Something like that? I know that's not correct, I'm just trying to work out the syntax and usage. Do I need "document.getElementById"? What does " 'Message and link via Twitter', null, 'http://www.x-services.nl') " refer to?

Thanks!