defold / extension-fbinstant

Facebook Instant Games extension for the Defold game engine
https://defold.com/extension-fbinstant/
MIT License
38 stars 20 forks source link

Loading rewarded video throws CLIENT_UNSUPPORTED_OPERATION #54

Closed krasnikov-andrew closed 5 years ago

krasnikov-andrew commented 5 years ago

Rewarded video does not loading. Request throws: code: "CLIENT_UNSUPPORTED_OPERATION" message: "Client does not support the message: getrewardedvideoasync"

britzl commented 5 years ago

Are you testing this on mobile?

krasnikov-andrew commented 5 years ago

Yes. Nothing happens. Loading request returns false

krasnikov-andrew commented 5 years ago

get_purchases also return null. But i have iap products on Facebook

britzl commented 5 years ago

I recall that there were quite a few things I needed to setup before I could get both IAP and ads to work. Have you signed up for Audience Network? Do you have a Payment Account set up?

krasnikov-andrew commented 5 years ago

Yes. Yes. Do we need to review our app for test ads and IAP?

britzl commented 5 years ago

Ok, so for IAP:

What does fbinstant.on_payments_ready() return? And fbinstant.get_product_catalog(callback)? Have you followed these steps: https://developers.facebook.com/docs/games/instant-games/guides/in-app-purchases ?

For ads: Where do you see the "CLIENT_UNSUPPORTED_OPERATION"? In the console? When calling fbinstant.load_rewarded_video(placement, callback)?

krasnikov-andrew commented 5 years ago

Thanks for help! Problem with rewarded video solved. My account was added to Audience Network with developer permissions and now i can see ads.

But problem with IAP still actual. fbinstant.on_payments_ready() callback never triggered. fbinstant.get_product_catalog() return null. I will look for solution in facebook settings and write report in this thread.

britzl commented 5 years ago

Ok, good to hear that rewarded videos work!

For IAP it's probably some setting that is missing somewhere for your project. This is how it looks in the example project where IAP purchases are working:

screen shot 2018-11-21 at 23 10 09

krasnikov-andrew commented 5 years ago

Good news: administrators can see IAPs. Bad news developers cant. I dont know why.

britzl commented 5 years ago

Ok, hmm, that might be something to ask Facebook about. You should ask this in the Instant Games group on Facebook.

britzl commented 5 years ago

Closing. Rewarded video was confirmed to work.