Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Miscellaneous Issues with App

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...

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Miscellaneous Issues with App

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.

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Miscellaneous Issues with App

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

Thank you!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Miscellaneous Issues with App

Hi Joe,

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

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Miscellaneous Issues with App

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!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Miscellaneous Issues with App

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

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Miscellaneous Issues with App

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!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Miscellaneous Issues with App

Hello! Working on it...

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Miscellaneous Issues with App

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...

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Miscellaneous Issues with App

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!

Return to “Issues”