Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(browser): Add close() method for android #2 #1107

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

PH-Lars
Copy link

@PH-Lars PH-Lars commented Aug 3, 2022

Fixes for earlyer pull #151. Added the requested imports and added call to resolve so the promise will resolve.

@yaberkane05
Copy link

any news on this ?

@mfradcourt
Copy link

Are you sure this is working properly ? Tried your lines but it doesn't close the window :(

@holygekko
Copy link

holygekko commented Feb 27, 2023

Works like a charm for me, don't forget to clean your project in android studio so the new code gets build.

@danielehrhardt
Copy link

Please merge

@cardacci

This comment was marked as abuse.

@cardacci
Copy link

It would be great if this PR could be completed!
Who should we reach out to for approval?
Perhaps some of the most active collaborators know who to contact for this.

@giralte-ionic
Copy link
Contributor

@PH-Lars could you please merge with main

tfullerMYCM added a commit to my-compliance-management/capacitor-plugins that referenced this pull request Jun 26, 2023
@giralte-ionic
Copy link
Contributor

@PH-Lars please fix your linting errors and rebase with main

@NinaDenisova
Copy link

I am using capacitor plugin and the lack of close() prevents me from addressing an issue in the software I am working on. It looks like the changes of the PR are working, are in general accepted by the reviewer and only a finalization step is left. Do you happen to have any idea when this will finally be merged?

@ManuelOverdijk
Copy link

I've tested this PR:

  • Works as expected on an Android Simulator, API 33
  • Does not work on a real device, API 29

@cparkinsonMYCM

This comment was marked as abuse.

@tfullerMYCM
Copy link

I've tested this PR on a real device running API 30 and it works as excepted.

I don't have a real device with API 29 so cannot test but as API 29 relates to Android 10 and that version no longer receives security updates this is not an issue for us as we will target API v. >=30

@sommmen
Copy link

sommmen commented Aug 31, 2023

Hi, @giralte-ionic could you take a look at this issue, i have a login with teams button which works in web, but on native it does not because of this issue.

@giralte-ionic
Copy link
Contributor

@PH-Lars and/or @sommmen would it be possible to provide a test repo?

We're also concerned about this not working in API < 30 - the code should provide an API-version based escape route with proper error messaging

@maxcodefaster
Copy link

@PH-Lars and/or @sommmen would it be possible to provide a test repo?

We're also concerned about this not working in API < 30 - the code should provide an API-version based escape route with proper error messaging

Any updates? As far as I understand, it is basically done, except for an api version check. Looking through the issues, you can see that this pr is eagerly awaited.

@ItsChaceD
Copy link
Contributor

This solution overrides the current activity stack and may not close the custom tabs depending on the context that the activity was launched as. I opened #1972 to circumvent this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet