cafe-sdk-unity icon indicating copy to clipboard operation
cafe-sdk-unity copied to clipboard

widget disappeared after 'sdk stop'

Open githubsdk opened this issue 7 years ago • 2 comments

I use these code in my unity sample: `using UnityEngine; using System.Collections;

public class NaverSample : MonoBehaviour {

// Use this for initialization
void Start () {
  
}

// Update is called once per frame
void Update () {

}
public void OnClick(GroupScript gs)
{
    GLink.sharedInstance().startWidget();
    GLink.sharedInstance().setShowWidgetWhenUnloadSDK(true);

}

}`

when I call the function 'OnClick', the float button widget displayed. But the widget will disappear when I tap 'X' button. Just see the gif picture(and full log, Unity setting). //----------------------------------------------------------------------- Waiting for you apply ,Thank you!

screen record phone

log file fulllog.log.txt

Unity settings setting

githubsdk avatar Aug 10 '17 03:08 githubsdk

@githubsdk Widget appears when the collapse button is tapped. Not X Button

conquests avatar Nov 02 '17 05:11 conquests

Finally , I use this as my solution .

void OnSDKStopEventCallbackFunction(){
 GLink.sharedInstance().startWidget();
}

githubsdk avatar May 22 '18 02:05 githubsdk