Browser URL

Welcome! Forums Unity Plugins In-App Web Browser Browser URL

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #722
    MrFlyingChip
    Participant

    Hello, I have a problem with your browser. I need to get current browser URL, but there are no method for it. I need URL, because web site redirects me to the web page with URL like that: http://api.vk.com/blank.html#access_token=******&expires_in=86400&user_id=****&state=123456. I need to get the URL and then access_token and user_id to use this web site`s API. Can you help me?

    #723
    PiotrPiotr
    Keymaster

    Hey,
    Have you checked onBrowserFinishedLoading? You might track URLs there. Let me know if that worked out for you.

    #724
    MrFlyingChip
    Participant

    onBrowserFinishedLoading is not working, as all the events.

     public void Start()
        {
            InAppBrowserBridge bridge = FindObjectOfType<InAppBrowserBridge>();
            bridge.onBrowserFinishedLoading.AddListener(OnBrowserLoading);
        }
    
    public void OnBrowserLoading(string url)
        {
            request = url;
        }

    Am I doing something wrong?

    #725
    PiotrPiotr
    Keymaster

    Please check readme file.

    #726
    MrFlyingChip
    Participant

    I checked it, it says that I`m doing evetything right. But these events do not work.

    • This reply was modified 6 years, 9 months ago by MrFlyingChip.
    #734
    PiotrPiotr
    Keymaster

    What about sample scenes? Are those working for you?

    #1055
    kannankannan
    Participant

    same problem for me also

    #1056
    kannankannan
    Participant

    i want to how how to get the url which is loaded currently .on finish loading system is not work . how can i get the current url?

    #1059
    PiotrPiotr
    Keymaster

    What exactly is not working? What did you try so far?

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.