Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PWA install button 'flashes' after app has been installed

Geert01Dec 16 2022 — edited Jan 26 2024

I have created a PWA app and decided to add a big 'Install me button' on the home page.
This works fine and when the user clicks on that 'button' the application gets installed on my phone.
But, after installing it, every time I refresh the home page, I see the button appearing and almost immediately disappear again. I would like to not see this happening.
The button is actually a Static Content region with a link that references href="#action$a-pwa-install"
It seems that some pwa javascript code, after loading the page sets the display attribute of the code with the href="#action$a-pwa-install" to none.
How can I prevent this 'flashing' of this region?
I have created a demo application on apex.oracle.com

Workspace: HUE_API
Username: FORUM_MEMBER
Password: fm-1222pwa
Application 149160 PWA

You can run this application (without first login in to apex.oracle.com) with this url (and above provided username/password):
https://apex.oracle.com/pls/apex/r/hue_api/pwa/login?session=100362485498447
You will see the 'Install on you phone' button flashing without first having installed the app on your phone, but also after installing the app. In the later case, the button will disappear.

This post has been answered by Geert01 on Dec 17 2022
Jump to Answer
Comments
Post Details
Added on Dec 16 2022
3 comments
406 views