Description

SETUP

change deeplink URI: go to Extensions>DeepLinkEx>Android and into the Inject into Android Manifest part, change android:scheme="myapp" and android:host="com.myapp.something" with your scheme and host.

OPEN APP THROUGH DEEPLINK

now, if your app is installed, if the user goes to the link you set during SETUP which will be something like this myapp://com.myapp.something your app will open and you will receive a social async event. Note: the callback is called after 5 seconds to be sure that the game is opened and there's an object ready to receive the callback.

BASIC USAGE

Basic usage is all about receiving a deep link callback in a SOCIAL ASYNC EVENT. You will receive "DEEPLINK" marked as "type" and the URI as string within "uri" (in this case "myapp://com.myapp.something")

Within Game Maker, into a social async event put this code:

var type = string(async_load[? "type"])
var uri = string(async_load[? "uri"])
//check for async event type
if type == "DEEPLINK"
{
    //do something
}

NOTE:

The deeplink and the callback will work both if the game is running in background or it is not running at all.

ADVANCED USAGE AND FEATURES

1) Whenever you want, you can use

deepLinkReady()

to "force" the social async call. You may want to do this if the 5 seconds delay is too much for your app's design. You can for example call deepLinkReady() each step, without problems, because if the social async event has already been called, by default or by deepLinkReady() itself, it won't be called again.

2) At any time, you can call

deepLinkGetUri()

to get the uri data as string (in this case "myapp://com.myapp.something"). If the uri is not defined you will get the string "no uri"

More info

End User Licence Agreement (EULA).

Version 1.6.0. Published July 14, 2017

Created with GameMaker: Studio v1.4.1763

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.


Gravatar

Andrej P 04 April 2017

This review was left for a previous version of this asset.


Gravatar

tom b 11 February 2017

Great App and great developer

I commented in his website and added a featured that I asked for in less than a day
for free!

Thanks a lot mattia,
you're the best!

This review was left for a previous version of this asset.


Gravatar

Liquid G 16 September 2016

This review was left for a previous version of this asset.

Package contents

Total size 4.37 KB

What is the issue?

Back to Top