android – Unity Google Play Games Plugin – First Leaderboard on Unpublished App – Testing Setup Problems?

I have been trying for a long time to fix this alone but now I am completely out of ideas and I have made a bit of a mess in my Google Play Developers Console (I am a brand new developer about to publish my first game for Android).

The game works pretty much perfectly and I am happy with it being ready to release. Its a very simple game, all about getting a high score. I wanted to use Google Play to handle my leaderboard. I’ve followed dozens of tutorials and the official Google documentation, but the code is slightly different on all. The one I’ve settled on for now is the Github Unofficial Google Play Plugin https://github.com/playgameservices/play-games-plugin-for-unity.

It seemed like it might be simple, and I kind of believe my code is sound. I feel my set-up of the Testers in the Google Dev Console might be the problem. I’ll try to explain quickly all the steps I took to include the leaderboard (sorry I may miss stuff as I’ve been at this for days already)

  1. Created my leaderboard inside my Dev Console. And copied the ‘Resources’ text
  2. Imported the plugin from Github, went through the initial set up steps such as pasting the resources text.
  3. Used Keystore Manager to make a new Custom Keystore. Input password etc.
  4. Build my app in Unity (Build settings: .AAB/Android App Bundle , Minify=Release)
  5. Uploaded this app to Internal Test Release (I also ended up doing ‘Closed’ and even ‘Open’ Testing. I also added my email used for Google Play in my phone to become a Tester.
  6. Try testing my game, the code where it tries to ‘Authenticate’ seems to not be called at all (ie. the ‘result’ switch has Debug Logs and none of them get printed in ADB Logcat).

Sorry If I missed some important step, but i think that was everything I did so far. Now here is the relevant code:

GameManager.cs:

    private void Start()
    {
        // ...rest of method was here

        Authenticate_Google_User();
    }

public void Authenticate_Google_User()
    {
        Debug.Log("Trying to Authenticate Client");
        PlayGamesPlatform.DebugLogEnabled = true;

        PlayGamesPlatform.Activate();

        PlayGamesPlatform.Instance.Authenticate(SignInInteractivity.CanPromptOnce, (result) => {
            switch (result)
            {
                case SignInStatus.Success:
                    Debug.Log("authenticate was success");
                    break;
                case SignInStatus.DeveloperError:
                    Debug.Log("Dev error");
                    break;
                default:
                    Debug.Log("authenticate failed");
                    break;
            }
        });
    }

So none of that seems to work. Because the rest of this code is for actually reporting the score or showing the leaderboard view. But this seems like it would work IF i was signed in.

    public void GameOver()
    {

        if (Social.localUser.authenticated)
        {
            if (GameManager.instance.GetScore() > 0)
                Social.ReportScore(GameManager.instance.GetScore(), "Leaderboard_ID_String", (bool success) => Debug.Log(success ? "success" : "not success"));
        }
        else
            Debug.Log("local user not authenticated");


        GameManager.instance.ShowGameOverCanvas(true);
    }
public void Button_ViewLeaderboard()
{
    Social.ShowLeaderboardUI();

}

So I have tried many other similar implementations and each time I have pushed my ‘version/build number’ up for the release in Google Dev Console. In the ReportScore function, if I removed the if(authenticated) part, I do indeed get a Debug.Log but it is to say “not success”

I feel my problem is either the set up of my Testers in Google play, or perhaps even my mobile phone is blocking me signing in (it is possible I set some privacy setting to No without thinking some time ago). But it may also of course be my code. Hence I am asking you experts here!

Please help 😀

enter image description here

enter image description here

enter image description here

8 – How to disable an alias path (for an unpublished page)?

As path aliases now seem revisionable (from 8.8.x, see Convert path aliases to full featured entities) what is the best way to set an unpublished page (that was unpublished by a content moderation—as per accepted answer in How to unpublish content that is under moderation) to not have the alias enabled? This seems to be what the status field is for, so what code should be used to set this when I know the entity (or is there already an existing module that does this when a page is unpublished)? Does cache need to be invalidated after status field change too?

Of note, the desire is to effectively remove all traces of a page from public view (i.e. for an anonymous user) but the page’s history needs to be kept for retention/record keeping purposes, so hence the requirement to only unpublish the page (and not delete it, which would remove the alias record). If the alias isn’t disabled for an unpublished page (like it is by default) then users are taken to the login page, thus not achieving the “remove all traces of it” goal. I understand authenticated users probably won’t be able to access this page by its alias path with status set to 0, but this is an acceptable (even preferred, for consistency) outcome.

Thanks

entities – Display unpublished taxonomy terms in select dropdown field

You don’t need to use permissions, just adjust the field’s reference method.

Add a new entity reference display view that returns all taxonomy of the given type with the published = 1 filter removed (so it display all terms regardless of publish status).

Edit your entity reference taxonomy field for the relevant node type. Under the Reference Type, adjust Reference method to Views: Filter by an entity reference view, then select your newly created view.

After saving the field settings, the node form should display all taxonomy regardless of user permissions on viewing unpublished content.

Scheduled unpublished content and media that is under content moderation

Let’s say you have a need for the following:

  • Content is created with content moderation, with various states.
  • After a set amount of time, the content is deleted or archived.
  • The user can set when media (using the media module) can be unpublished.
  • When the media is unpublished, it’s truly gone from the system. Meaning, if you already knew the path of the file before (like example.com/site/default/files/blah.pdf), then after it has been unpublished, it can no longer be accessed because it’s gone from the file system.

Playing around with content moderation, I can get it to published in a scheduled manner, but unpublishing seems to not be as straight forward. And media, well, that seems to stick around forever unless you truly delete it.

What am I missing? If this isn’t a part of the contributed modules, what other options are there?

I can’t Appeal to publish my unpublished facebook page

I created a facebook page on march 2020 “The Iters” ((Text)fb.com/theiterstravel) and now my facebook page is unpublished by facebook, only having a message on my page saying that my page has violated community standards.

Even I could not see that I had any restrictions or violations on, page qualitytab in my facebook page.

when I tried to click
page -> settings->general->page visibility and appeal,
an error message pops and I can’t complete the action.

I also followed the instructions displayed with the error messages but I had the same error.

Even my facebook profile was disabled on 23/06/2020 but
after verifying my phone number and uploading my photo I got access to my profile again few days later.

My business is almost completely depending on this facebook page so I have become helpless with this issue.
I have attached screenshots, as these would help you just in case.

seo – Is there an application that would detect my over or under optimization errors in my unpublished article?

I started where you are now, looking for the "magic tool" or a special tip to classify.

I don't know the tools you mentioned apart from Yoast, but even some of the most popular tools use obsolete techniques from 10 years ago, which can waste your time doing things that don't Don't matter.

A good SEO has too many factors for a single application to solve everything. Spend a lot of time reading articles here, and I think you will get much more than most of the tools you will find. The more familiarized you are with SEO, the better you can use the tools and know what needs to be improved and what is a waste of time.

Finally, I think your supervisor might be a little too short-sighted. Google constantly reviews the pages. It is not realistic to think that a page will rank # 1 when it is first published. Instead, publish your pages and watch them in Google Analytics for a few months (not days or weeks), to see how they work. By using GA and what you learn here, you will have a better idea of ​​how to improve your SEO. Even if you have hired an SEO company, it probably will not be able to position your pages on the first page of Google for a few months.

Yoast is good, and I use it, but I recommend that you read the following articles here in collaboration with Yoast:

SEO: where to start?

What are the best ways to increase the position of a site in Google?

Very low CTR in organic Google results

Domain Name System – Unpublished AWS Route 53 Alias ​​Registration

I host a website under the domain www.onomasticon.net . The website is a static website, hosted on AWS Cloudfront, serving from an S3 bucket. It works well. I also want to make this site accessible from onomasticon.net . I have configured another S3 compartment (transfer to the main) and another Cloudfront distribution.

However, I can't seem to configure DNS correctly. The domain is managed in Route 53 of Amazon. Based on the documentation I found, I configured an ALIAS record, pointing to the secondary Cloudfront distribution.

It seemed to work for a while, and now it no longer works. The problem is DNS. When looking for www.onomasticon.net (using DNS 8.8.8.8), I get the correct answer. You look for onomasticon.net results in an error – the domain cannot be found.

How can I make it work?

8 – An error is displayed when a product is unpublished

I have a site with Drupal 8, Drupal Commerce 2.11 and the Message module.

I've created a message template to create a message when a product is published:

    & # 39; mas_create_product & # 39; uid & # 39; => $ trade_product-> get ('uid')])
$ message-> set (& # 39; field_product_reference & # 39 ;, $ trade_product);
$ message-> set (& # 39; field_published & # 39 ;, $ commerce_product-> isPublished ());
$ message-> save ();
}

/ **
* Implements hook_node_insert ().
* /
function message_activity_stream_node_insert (Node $ node) {
$ message = Message :: create (['template' => 'mas_create_node', 'uid' => $node->get('uid')])
$ message-> set (& # 39; field_node_reference & # 39 ;, $ node);
$ message-> set (& # 39; field_published & # 39 ;, $ node-> isPublished ());
$ message-> save ();
}

/ **
* Implements hook_commerce_product_update ().
* /
function message_activity_stream_commerce_product_update (Product $ commerce_product) {
if (empty ($ trade_product-> original)) {
return;
}

message_activity_stream_update_message_status ($ commerce_product);
}

/ **
* Implements hook_node_update ().
* /
function message_activity_stream_node_update (Node $ node) {
if (empty ($ node-> original)) {
return;
}

message_activity_stream_update_message_status ($ node);
}

/ **
* Define the published field of the message entity when it changes in the associated entity.
*
* @param  Drupal  Core  Entity  ContentEntityBase $ entity
* The object entity.
* /
function message_activity_stream_update_message_status (entity ContentEntityBase) {
if ($ entity-> isPublished () == $ entity-> original-> isPublished ()) {
return;
}

$ query =  Drupal :: entityQuery (& # 39; message);

$ field = 'field _'. $ entity-> getEntityType () -> id (). & # 39; & # 39 ;; _référence
$ query-> condition (field $. & # 39; .target_id & # 39 ;, $ entity-> id ());

$ results = $ query-> execute ();

if (empty ($ results)) {
return;
}

$ messages = Message :: loadMultiple ($ results);

foreach ($ messages as $ message) {
$ message-> set (& # 39; field_published & # 39 ;, $ entity-> isPublished ());
$ message-> save ();
}
}

If I register my product by publishing it and modify it by unpublishing it, an error appears:

The website has encountered an unexpected error. Please try again later.

Error: call a member function getColumns () on a boolean in Drupal  Core  Entity  Query  Sql  Tables-> addField () (line 236 of / var / www / www-domain-com / web / core / lib / Drupal / Core / Entity / Query / SQL / Tables.php) # 0 /var/www/www-domain-com/web/core/lib/Drupal/Core/Entity/Query/Sql/Condition.php(52) : Drupal  Core  Entity  Query  Sql  Tables-> addField ("field_commerce" ..., "INNER", NULL) # 1 / var / www / domain- com / web / core / lib / Drupal / Core /Entity/Query/Sql/Query.php(162): Drupal  Core  Entity  Query  Sql  Condition-> compile (Object (Drupal  Core  Database  Driver  mysql  Select)) # 2 / var / www /www-domain-com/web/core/lib/Drupal/Core/Entity/Query/Sql/Query.php(73): Drupal  Core  Entity  Query  Sql  Query-> compile () # 3 / var /www/www-domain-com/web/modules/custom/message_activity_stream/message_activity_stream.module(122): Drupal  Core  Entity  Query  Sql  Query-> ex ecute () # 4 / var / www / www-domain -com / web / modules / custom / message_activity_stream / message_activity_stream.module (81): message_activity_stream_update_message_status (Object (Drupal  commerce_product  Entity  Product)) # 5 [internal function]: message_activity_stream_commerce_product_update (Object (Drupal  commerce_product  Entity  Product)) # 6 /var/www/www-domain-com/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(403) call_user ... & # 39; Array) # 7 /var/www/domain-com/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(204): Drupal  Core  Extension  ModuleHandler-> invokeAll (& # 39; ; commerce_produc ... (Array) # 8 /var/www/www-domain-com/web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(756): Drupal  Core  Entity  EntityStorageBase - >> invokeHook (& # 39; update & # 39 ;, Object (Drupal  commerce_product  Entity  Product)) # 9 / var / www / www-domain-com / web / modules / contrib / commerce / src / CommerceContentEntityStorage .php (92): Drupal  Core  Entity  ContentEntityStorageBase-> invokeHook (& # 39; update & # 39 ;, Object (Drupal  commerce_product  Entity  Product)) # 10 / var / www / domain-com / web / core / lib / Drupal / Core / Entity / EntityStorageBase. php (507): Drupal  commerce  CommerceContentEntityStorage-> invokeHook ('update', Object (Drupal  commerce_product  Entity  Product)) # 11 / var / www / domain-com / web / core / lib /Drupal/Core/Entity/ContentEntityStorageBase.php(641): Drupal  Core  Entity  EntityStorageBase-> doPostSave (Object (Drupal  commerce_product  Entity  Product), true) # 12 / var / www / www-domain-com /web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(432): Drupal  Core  Entity  ContentEntityStorageBase-> doPostSave (Object (Drupal  commerce_product  Entity  Product), true) # 13 / var / www /domain-com/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(77)): Drupal  Core  Entity  EntityStorageBase-> save (Object (Drupal  commerce_product  Entity  Product)) # 14 / var / www / www-domain-com / web / core / lib / Drupal / Heart / Entity / Entity .php (390): Drupal  Core  Entity  Sql  SqlContentEntityStorage-> save (Object (Drupal  commerce_product  Entity  Product)) # 1 5 / var / www / domain-com / web / modules / contrib / commerce / modules / product / src / form / productform.php (233): Drupal  Core  Entity  Entity-> save () # 16 [internal function]: Drupal  commerce_product  Form  ProductForm-> save (Array, Object (Drupal  Core  Form  FormState)) # 17 / var / www / www-domain-com / web / core / lib / Drupal / Core / Form / FormSubmitter.php (111): call_user_func_array (Array, Array) # 18 /var/www/www-domain-com/web/core/lib/Drupal/Core/Form/FormSubmitter.php(51): Drupal  Core  Form  FormSubmitter-> executeSubmitHandlers (Array, Object (Drupal  Core  Form  FormState)) # 19 /var/www/www-domain-com/web/core/lib/Drupal/Core/Form/FormBuilder.php(589) : Drupal  Core  Form  FormSubmitter-> doSubmitForm (Array, Object (Drupal  Core  Form  FormState)) # 20 / var / www / com-domain / web / core / lib / Drupal / Core / Form / FormBuilder. php (318): Drupal  Core  Form  FormBuilder-> processForm ("commerce_produc ...", Array, Object (Drupal  Core  Form  FormState)) # 21 / var / www / www -domain-com /web/core/lib/Drupal/Core/Controller/FormController.php(93): Drupal  Core  Form  FormBuilder-> buildForm (& # 39; trade_produc ... & # 39; Object (Drupal  Core  Form  FormState)) # 22 [internal function]: Drupal  Core  Controller  FormController-> getContentResult (Object (Symfony  Component  HttpFoundation  Request), Object (Drupal  Core  Routing  RouteMatch)) # 23 / var / www / www-domain-com / web / core /lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array (Array, Array) # 24 / var / www-www-domain-com / web / core / lib / Dribal / Core / Render / Render / ( 582): Drupal  Core  EventSubscriber  EarlyRenderingControllerWrapperSubcriber-> Drupal  Core  EventSubscriber  {Close} () # 25 / var / www / domain-com / web / core / lib / Drupal / Core / Event / Subscriber / EarlyRenderingControllerWoldSubscripts. php (124): Drupal  Core  Render  Renderer-> executeInRenderContext (Object (Drupal  Core  RenderContext), Object (Closure)) # 26 / var / www / www-domain-com / web / core / lib / Drupal / Core / EventSubscriber / EarlyRenderingControllerWrapperSubscriber.php (97): Drupal  Core  EventSubscriber  EarlyRenderingControll erWrapperSubcriber-> wrapControllerExecutionInRenderContext (Array, Array) # 27 / var / / / / -saint). om / vendor / symfony / http-kernel / HttpKernel.php (151): Drupal  Core  EventSubscriber  EarlyRenderingControllerWrapperSubscriber-> Drupal  Core  EventSubscriber  {Close} () # 28 / var / www / www-domain-com / provider / symfony / http-kernel / HttpKernel.php (68): Symfony  Component  HttpKernel  HttpKernel-> handleRaw (Object (Symfony  Component  HttpFoundation  Request), 1) # 29 / var / www / www-domain- com / web / core / lib / Drupal / Core / StackMiddleware / Session.php (57): Symfony  Component  HttpKernel  HttpKernel-> handle (Object (Symfony  Component  HttpFoundation  Request), 1, true) # 30 / var / www / www-domain-com / web / core / lib / Drupal / Core / StackMiddleware / KernelPreHandle.php (47): Drupal  Core  StackMiddleware  Session-> handle (Object (Symfony  Component  HttpFoundation  Request) , 1, true) # 31 /var/www-domain-com/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal  Core  StackMiddleware  Kerne lPreHandle-> handle (Object (Symfony  Component  HttpFoundation  Request), 1, true) # 32 / var / www / domain-com / web / core / modules / page_cache / sr c / StackMiddleware / PageCache.php (78) : Drupal  page_cache  StackMiddleware  PageCache-> pass (Object (Symfony  Component  HttpFoundation  Request), 1, true) # 33 / var / www / www-domain-com / web / core / modules / ban / src / BanMiddleware.php (50): Drupal  page_cache  StackMiddleware  PageCache-> handle (Object (Symfony  Component  HttpFoundation  Request), 1, true) # 34 / var / www / www-domain-com / web / core / lib / Drupal / Core / StackMiddleware / ReverseProxyMiddleware.php (47): Drupal  Ban  BanMiddleware-> Handle (Object (Symfony  Component  HttpFoundation  Request), 1, true) # 35 / var / www-domain-com / web / core / lib / Drupal / Core / StackMiddleware / NegotiationMiddleware.php (52): Drupal  Core  StackMiddleware  ReverseProxyMiddleware-> Handle (Object (Symfony  Component  HttpFoundation ) Request), 1 , true) # 36 /var/www-domain-com/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal  Core  StackMiddleware  NegotiationMiddleware-> handle (Object (Symfony  Component  HttpFoundation  Request), 1, true) # 37 / var / www / domain-com / web / core / lib / Drupal / Core / DrupalKernel.php (669): Stack  StackedHttpKernel-> handle (Object (Symfony  Component  HttpFoundation  Request), 1, true) # 38 /var/www-www-domain-com/web/index.php (19): Drupal  Core  DrupalKernel-> handle (Object (Symfony  Component  HttpFoundation  Request)) # 39 {main}.

enter the description of the image here