C3 + Instant Games SDK = Much Profit

Post » Thu May 17, 2018 8:37 pm

@paala

Code: Select all
   FBInstant.context.chooseAsync()
  .then(function() {
    console.log(FBInstant.context.getType());
  });


This works, you can see in the console that you actually has changed into a THREAD.
But to be able to use the functions in the construct plugin later on (update contextueal leaderboards and similar. We must update
InstantGames.ContextType
InstantGames.ContextID

So after calling chooseAsync we need to set the construct internal variabel name for these, otherwise the offical plugin do not get updated with the new ID and Type and the official events do not work with the new ID and Type....
B
19
S
6
G
1
Posts: 223
Reputation: 2,416

Post » Fri May 18, 2018 8:41 am

After 25 days of waiting for a review, Facebook finally approves.
B
13
S
3
G
2
Posts: 116
Reputation: 2,187

Post » Fri May 18, 2018 8:44 am

jagoman wrote:After 25 days of waiting for a review, Facebook finally approves.


I waited 39 days for one :shock:

but the queue time decreases every day now
B
19
S
6
G
1
Posts: 223
Reputation: 2,416

Post » Sat May 19, 2018 9:48 am

Hey folks !
I'm trying to understand why my Create home screen shortcut function doesn't work but I can't figure it out... :(
My events are pretty simple, see screenshot below: Image
Everytime I tap on ButtonHomeAdd, it fails.
Is it due to my Android version ? Which is 7.x on a Huawei MediaPad, or am I missing something ?
Image
Version 1.2.5 - Available for: Web - iOS - Android
B
16
S
3
Posts: 61
Reputation: 1,093

Post » Sat May 19, 2018 11:56 am

Ok, I found out why it doesn't work.
When you open an Instant Game via Messenger on Android for the first time, Facebook prompt a dialog asking you if you wish to add a shortcut to your homescreen.
Image
I actually did, then I removed the shortcut. I go back to Instant Game to add the shortcut, and when I tap on that button it fails...
I had a look to Instant Game documentation and I found out that there is a canCreateShortcutAsync function (see https://developers.facebook.com/docs/games/instant-games/sdk/fbinstant6.2). I guess we're missing that function into the Instant Game plugin of C3. This would allow us to first check if the app is elligible or not to ask for shortcut creation on user's Android device.
@Ashley: Does it make sense? May I create a feature request on https://construct3.ideas.aha.io/ideas/C3-I-486?
Image
Version 1.2.5 - Available for: Web - iOS - Android
B
16
S
3
Posts: 61
Reputation: 1,093

Post » Tue May 22, 2018 7:47 pm

is it Asking this question for you too when you send for review?
In-App Purchase Integration (how to access the in-app purchases)

Note: I am not using in app purchase ,Where can i Close in app?
B
2
Posts: 1
Reputation: 152

Post » Tue May 22, 2018 8:39 pm

bubito wrote:is it Asking this question for you too when you send for review?
In-App Purchase Integration (how to access the in-app purchases)

Note: I am not using in app purchase ,Where can i Close in app?


Yes, it shows in the review tab even if you do not use it. But don't add it to the review (even if it's there)

Note: questions regarding Instant Games review is better to ask in a facebook forum.
B
19
S
6
G
1
Posts: 223
Reputation: 2,416

Previous

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest