2 or more time tap on share button issue

  • amisha
    Likes 0

    Problem Description

    1st time screenshot get ready but when i tap 2nd or  multipal time on sharing button then half screen show blak not full screenshot visible….how can i solve this issue.

    error in logcat:

    ImageIO: CGImageReadGetBytesAtOffset : *** ERROR *** CGImageSource was created with data size: 4425741 - current size is only: 4417265
    2015-08-21 16:11:41.150 DressMeUp-mobile[1677:221559] plugin com.apple.share.Facebook.post invalidated

  • Sonar Systems admin
    Likes 0

    Could you show us a screenshot of this problem.


    This reply has been verified.
  • amisha
    Likes 0

  • amisha
    Likes 0

     

      i show the help but image can not bowse and url is not consider.

    Inshort,Image is not show as full screenshot but above half part get ready and below half part is black.

     


  • Sonar Systems admin
    Likes 0

    I dont understand.


    This reply has been verified.
  • amisha
    Likes 0


  • Sonar Systems admin
    Likes 0

    I can’t see the screenshot.

  • amisha
    Likes 0


  • Sonar Systems admin
    Likes 0

    Can you upload it to another image hosting site and share a link please.

  • amisha
    Likes 0

    https://youtu.be/0K4OOlQCNJ4

  • Sonar Systems admin
    Likes 0

    Can you show us the code where you are taking a screenshot and sharing to facebook.

  • amisha
    Likes 0

    void HelloWorld::Share_btn_screen(Ref *sender)
    {
     
        utils::captureScreen( CC_CALLBACK_2(HelloWorld::afterCaptured, this), "screnshot.png" );
        }
        

    void HelloWorld::afterCaptured(bool succeed, const std::string& outputFile)
    {
        if (succeed) {
            cocos2d::__String *str =String::create(outputFile);
            SonarCocosHelper::Facebook::Share("","","My favorite game post","", str->getCString());

        }
        else
        {
            log("Capture screen failed.");
        }
    }

     

        

     

  • Sonar Systems admin
    Likes 0

    try using the Facebook share after a delay of about 2 seconds.


    This reply has been verified.
  • amisha
    Likes 0

    i try that but still same problem

  • Sonar Systems admin
    Likes 0

    Does it work without an image?

  • amisha
    Likes 0

    yes            

  • Sonar Systems admin
    Likes 0

    Does it work with a local image?

  • amisha
    Likes 0

    yes sir

  • Sonar Systems admin
    Likes 0

    Try displaying the screenshot in a sprite and see if that works.


    This reply has been verified.
  • alvinay00
    Likes 0

    Was there ever a solution to this?

  • alvinay00
    Likes 0

    I solved it by changing screenshot to save as jpg instead of png

  • Sonar Systems admin
    Likes 0

    Fantastic to hear. If you have any more questions feel free to post them.

Login to reply