capacitor-plugins icon indicating copy to clipboard operation
capacitor-plugins copied to clipboard

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

Open PH-Lars opened this issue 2 years ago • 16 comments

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

PH-Lars avatar Aug 03 '22 19:08 PH-Lars

any news on this ?

yaberkane05 avatar Sep 24 '22 08:09 yaberkane05

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

mfradcourt avatar Dec 16 '22 09:12 mfradcourt

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

holygekko avatar Feb 27 '23 20:02 holygekko

Please merge

danielehrhardt avatar Mar 22 '23 21:03 danielehrhardt

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 @jcesarmobile @imhoffd @theproducer

cardacci avatar May 30 '23 14:05 cardacci

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.

cardacci avatar May 30 '23 18:05 cardacci

@PH-Lars could you please merge with main

giralte-ionic avatar Jun 26 '23 13:06 giralte-ionic

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

giralte-ionic avatar Jun 27 '23 14:06 giralte-ionic

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?

NinaDenisova avatar Jul 10 '23 12:07 NinaDenisova

I've tested this PR:

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

ManuelOverdijk avatar Jul 31 '23 08:07 ManuelOverdijk

I've tested this PR:

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

That's absolutely fine, considering the current state is that it also doesn't work as it is isn't implemented.

cparkinsonMYCM avatar Jul 31 '23 10:07 cparkinsonMYCM

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

tfullerMYCM avatar Aug 02 '23 15:08 tfullerMYCM

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.

sommmen avatar Aug 31 '23 12:08 sommmen

@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

giralte-ionic avatar Aug 31 '23 14:08 giralte-ionic

@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.

maxcodefaster avatar Dec 05 '23 15:12 maxcodefaster

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

ItsChaceD avatar Dec 20 '23 10:12 ItsChaceD