M
M
mansyrevam2020-09-07 13:54:58
JavaScript
mansyrevam, 2020-09-07 13:54:58

Why can't FAPI detect the platform?

I get the following error on initialization: FAPI was unable to detect launch platform. URL parameters and app_id/app_key not detected.

Here is my code:

InitOK: function(){
    var res = FAPI.Util.getRequestParameters();

    console.log("apiServer: " + res["api_server"])
    console.log("apiConnection: " + res["apiconnection"]);

    FAPI.init(res["api_server"], res["apiconnection"],
      /*
          * Первый параметр:
          * функция, которая будет вызвана после успешной инициализации.
          */
          function() {
              alert("Инициализация прошла успешно");
          },
          /*
          * Второй параметр:
          * функция, которая будет вызвана, если инициализация не удалась.
          */
          function(error) {
             alert("Ошибка инициализации");
             console.log(error);
          });
  }


Unity game, WEBGl build, I run the build via Chrome on a local server. I want to get some information by mistake, ideally a fix

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mansyrevam, 2020-09-08
@mansyrevam

Solution: publish on the application on classmates in closed access

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question