R
R
Romas342016-10-03 12:09:26
Classmates
Romas34, 2016-10-03 12:09:26

API initialization errors OK?

Recently, in the application in Odnoklassniki (iframe application), errors began to appear when logging in, as well as when trying to purchase. When the API is initialized, a subscription to events occurs:

Odnoklassniki.addEventListener(ApiServerEvent.CONNECTED, onConnect);
Odnoklassniki.addEventListener(ApiServerEvent.CONNECTION_ERROR, onErrorConnection);
Odnoklassniki.addEventListener(ApiServerEvent.PROXY_NOT_RESPONDING, onErrorConnection);
Odnoklassniki.addEventListener(ApiServerEvent.NOT_YET_CONNECTED, onErrorConnection);

When logging in, an error occurs on the ApiServerEvent.PROXY_NOT_RESPONDING event. But the authorization and launch of the application in the end goes well. Also, the user could not make a purchase, having received an error with the text "odnoklassniki_not_yet_connected". As I understand it, this is an error on the ApiServerEvent.NOT_YET_CONNECTED event.
What could be the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Gunko, 2016-10-12
@Romas34

There, chrome blocks the proxy flash drive that the as3 sdk of Odnoklassniki communicates with.
We eventually abandoned as3 sdk, we use https://apiok.ru/dev/sdk/js/ via ExternalInterface

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question