Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

6 years ago by stillen

This allows you to check if an application is installed on the iPhone by url. If it is, then you can successfully open the application.

https://github.com/stillenklipse/EjectaCheckUrl

Example:
if( window.ejecta ){
    var OpenUrl = new Ejecta.OpenUrl('fb:');
    if(OpenUrl.isUrlSafeToOpen() == "true"){
      OpenUrl.openPassedUrl();
    }
}else{
  console.log('facebook not installed')};
}

This checks if the user has Facebook is installed, then it will open the Facebook App to your game Facebook Fan Page.

6 years ago by mimik

Nice!
Minimal code :-)
This will work with any url based app right?
Like Twitter

6 years ago by stillen

Yup the idea was if you know the app url, you can test if then handle it accordingly. I have been checking if FB is installed and if not, then opening FB.com instead of the app.

If you have other games with a url added to it, then you can link to your other games too.
Page 1 of 1
« first « previous next › last »