Method signature

The method is intended for moving from the game/application page to other pages with the ability to return back.

List of supported platforms:

  • IOS,
  • Android.
FAPI.invokeUIMethod("goToServiceWithReturn", "url", "customArgs")

Example usage

FAPI.invokeUIMethod("goToServiceWithReturn", "/vitrine", "text")

Method parameters:

NameRequiredTypeDescription
urlYesStringlink to open
customArgsNoStringLogged when returning to the game via URL in custom_args.

Callback example

Callback if the method call is successful:

method: “goToServiceWithReturn” result: “ok” data: “service_opened”

Callback if user returned back to the game:

method: “goToServiceWithReturn” result: “ok” data: “service_returned”

Callback if method is not supported on a platform:

method: “goToServiceWithReturn” result: “error” data: “not_supported”

Callback if calling a method without a URL:

method: “goToServiceWithReturn” result: “error” data: “missing required parameter: url”