Logout with UnityEngine.Social in unity - android

I use UnityEngine.Social to login my user on googleplaygames or ios:
Social.localUser.Authenticate(ProcessAuthentication);
This work fine, but now I would like to make my user hable to disconnect. But the Social or ILocalUser the class do not contain any method to disconnect. I don't find how do it cleanly and keep the abstraction of google or ios system if possible.
Thank you - sorry for english error -

You can sign out from googleplaygames simply using this:
using GooglePlayGames;
using UnityEngine.SocialPlatforms;
PlayGamesPlatform.Instance.SignOut ();

#Zeldarck You can sign out from google play games as #Jindra Žák said but for iOS Game center it is not to log out as iOS not provide a way to do it.Refer for iOS game center here

Related

Deeplinking Squareup pos app is not working

The documentation link: https://developer.squareup.com/docs/pos-api/build-mobile-web#step-5-test-your-code suggest straight forward code like this:
<a href="intent:#Intent;
action=com.squareup.pos.action.CHARGE;
package=com.squareup;
S.browser_fallback_url=https://my.website.com/index.html;
S.com.squareup.pos.WEB_CALLBACK_URI=https://my.website.com/index.html;
S.com.squareup.pos.CLIENT_ID=sq0ids-yourClientId;
S.com.squareup.pos.API_VERSION=v2.0;
i.com.squareup.pos.TOTAL_AMOUNT=100;
S.com.squareup.pos.CURRENCY_CODE=USD;
S.com.squareup.pos.TENDER_TYPES=com.squareup.pos.TENDER_CARD,com.squareup.pos.TENDER_CASH;
end">Start Transaction</a>
I tested it and it does not open any link, my devide already have app installed.
When I try this code:
Take a QR code 2
It open play store app with squareup pos app information, I need to directly open the app and not play store screen of the app, is there any way?
*UPDATE:
I got transactions to work after adding S.com.squareup.pos.LOCATION_ID={{ my_location_id }}. The location ID can be found in Square Developer Portal > Locations. Also if the POS app is passcode protected, you have to open and login with passcode before sending transaction.
*END UPDATE
I've been working through this same issue. I still haven't gotten a transaction to work, but have at least gotten the app to open.
Make sure the CLIENT ID is your production application ID. NOT sandbox.
The WEB_CALLBACK_URI needs to match the Web Callback URL defined in your Square Developer Portal > Point Of Sale API.
I hope this helps. If you do figure this out and get transactions to work, please post your solution for me and others who are sure to run into this issue since the documentation is lacking.

in a frame because it set X-Frame-Options android paypal

I have the next issue with my integration with paypal web, what happend well i trying to use webview for show client paypal with checkout.js using my account sandbox everything work fine, but when try to pass to production when the user try to pay and later try to sign in the iframe in paypal in web console from webview return something like this:
Refused to display 'https://www.paypal.com/signin?intent=checkout&ctxId=ullndg30c5acef3b074755860900b24700c07f&returnUri=%2Fwebapps%2Fhermes&state=%3Fflow%3D1-' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
You can try to follow the istructions in "Best-for-now Legacy Browser Frame Breaking Script" from https://www.owasp.org/index.php/Clickjacking_Defense_Cheat_Sheet
In this manner I solved the same issue.
Best regards

How can I get back to Google Sign In / Account Chooser in a Phonegap/Cordova app?

Building my first app with PhoneGap Build but cannot solve a problem which is, of course, an important piece.
The app uses Google oAuth2 to access an external site where I fetch data with Ajax. I use a url to do the initial login.
The only way I can get back to the Google Sign In is to delete and reinstall the app in iOS. In Android, I can use Application Manage and Clear Data.
In both cases, I get asked for the Sign In again as desired if I take either of those manual steps.
How can I programmatically clear the oAuth2 data which I believe is causing the problem?
Or, if necessary, what can I do to reinitialize the app entirely?
Thanks in advance for your suggestions.
Got this to work for me:
function googLogout (){
var ref = window.open('https://accounts.google.com/Logout?continue=http://google.com', '_blank', 'hidden=yes');
setTimeout(function(){ref.close();}, 3000);
alert('goog logout done');
}
Hope it helps someone else.

Is it possible to set up a betfair api-ng non interactive login for android

I am trying to write an android application that will use the non interactive login to the Betfair API-NG. I am just wondering if this is possible as to do this I need to generate certificates on my computer. Will this generated certificate be ok (and work) when I copy it to my android?
Thanks in advance.
Just use the normal API Login https://api.developer.betfair.com/services/webapps/docs/display/1smk3cen4v3lu3yomq5qye0ni/Non-Interactive+%28bot%29+login

Attach to Like!andTweed function in cocos2d-x Android App

I created Android App that is made by cocos2d-x.
I'd like to implement cooperation function with social network service (facebook and twitter )
For example, Like! button which separate news feed.tweet function.
But This function turned out to be a can of worms which I couldn't finish.
I found EziSocial. but I can't find any hints.
would you give me a
description of how to use and method of attach to existing app
We have series of tutorials available on our website. http://ezibyte.com/tutorials/
Disclaimer: I am the creator of EziSocial Plugin

Categories

Resources