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.
Example usage
Method parameters:
Name | Required | Type | Description |
---|---|---|---|
url | Yes | String | link to open |
customArgs | No | String | Logged 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”