axmolengine / axmol

Axmol Engine – A Multi-platform Engine for Desktop, XBOX (UWP) and Mobile games. (A fork of Cocos2d-x-4.0)
https://axmol.dev
MIT License
922 stars 205 forks source link

Android: protected void onNewIntent(Intent intent) is never called #1881

Closed asnagni closed 5 months ago

asnagni commented 6 months ago

Hi guys, Normally, the onNewIntent() method is supposed to be called on AppActivity instance to handle a new intent. Unfortunately at I'm not seeing that happening .

  1. create a simple Axmol android project
  2. Override the protected void onNewIntent(Intent intent)
  3. Run and create a new internet wherever you may like
  4. Your method onNewIntent(Intent intent) will never be called.
asnagni commented 6 months ago

It's working properperly. This was a mistake in the Manifest file.

rh101 commented 6 months ago

Normally, the onNewIntent() method is supposed to be called on AppActivity instance to handle a new intent. Unfortunately at I'm not seeing that happening .

The Android OS is responsible for calling onNewIntent(), so it's not something controlled by Axmol. Furthermore, the call to onNewIntent() is only made depending on the configuration of the activity. More info here.

It's working properperly. This was a mistake in the Manifest file.

Please close this issue if this isn't something related to Axmol.

asnagni commented 5 months ago

Hi rh101, The issue was resolved and the issue was on our side. We just forgot to close this opened bug.

Thank you for your assistance, I do appreciate.

Stay safe

asnagni commented 5 months ago

Thank you