Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CordovaPlugin: Attempted to send a second callback for ID: Instagram612896362 #43

Closed
pranaydutta89 opened this issue Aug 7, 2015 · 8 comments

Comments

@pranaydutta89
Copy link

if i run the plugin in a demo app(the share function) it works , but when i integrate to the original its not showing any action ,neither error nor success(in share function) but t he isInstalled function is getting called and working correct, and in debug log i am getting this error

08-07 11:51:09.210 25214 25316 W CordovaPlugin: Attempted to send a second callback for ID: Instagram612896362
08-07 11:51:09.210 25214 25316 W CordovaPlugin: Result was: "Invalid action"

please help me with this one

@vstirbu
Copy link
Owner

vstirbu commented Aug 7, 2015

Pretty hard to see what goes wrong without seeing some code... Can you try to reproduce the problem extending the example app?

@pranaydutta89
Copy link
Author

well thanx for the comment , however the problem was something different i was truncating the data:image/png part by a regex and after inspecting your code found that you where also doing the same thing, now Instagram app is opening up, but it's only sharing part of image ,not the full image can you please help me with this

@vstirbu
Copy link
Owner

vstirbu commented Aug 8, 2015

can you post a screen capture? it might be similar to #35.

@pranaydutta89
Copy link
Author

i found the problem now i am able to share the whole image if image is in png format for jpeg its truncating the image,and the callback is also not working it always gives me as shared failed

@vstirbu
Copy link
Owner

vstirbu commented Aug 10, 2015

Thanks for the update. I'll update the documentation to indicate that the image should be in png format.

It was already noted in another issue (#31) that on Android the Instagram application does not report if the action was successful.

@vstirbu vstirbu closed this as completed Aug 10, 2015
@pranaydutta89
Copy link
Author

if possible can you please keep as a promise sort of callback

@vstirbu
Copy link
Owner

vstirbu commented Aug 10, 2015

If you use angular/ionic, you can find a promise-based wrapper in ngcordova.

@pranaydutta89
Copy link
Author

i used it its giving me CDEP error,there is some bug with ngcordova anyways thanx for reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants