I am very new to Swift UI, therefore seeking for help on StackOverflow.
Story
I am creating an iOS App using SwiftUI and WKWebView. I would like to add custom bottom navigation bar to navigate through my web app.
Problem
The only thing that works is to load WKWebView on navigation button click. But as you understand, the entire webview gets reloaded every time. How can I simulate this kind of navigation? Maybe I should run some JavaScript when the button gets clicked?
I have spent some time trying to find a proper solution but unsuccessfully.
Thanks in advance!
Need to have an event to be fired every time a page on my app is visible again (got focus).
Example: My app opens a browser, or people opens another app.
I need an event when browser or other app is closed and my app page becomes VISIBLE (on top) again.
OnAppearing() does not works in this case.
Is there a way to fire this event ?
Regards
The problem I’m asking is how to have a kind of page (call it SetupPage) that is only shown until the user presses a button on the screen. Then when the screen should show the next page(call it HomePage) and every time the app is opened after the button press, the normal page will be HomePage.
I’ve seen this general idea in many apps (sign-in and home page, enter phone number or school and main page, etc) and I would like to have it in my app! I’m thinking of using Navigator routes and having the stack be this at first:
(HomePage, SetupPage)
and then once the button is pressed I can pop SetupPage. But I’m not sure how to implement this.
I already have the SetupPage and HomePage classes made. I’m not doing a sign-in the SetupPage or anything like that. I’m not using FireBase in this app either.
You can use the Flutter package shared_preferences to save a Boolean that tell you at the start of the program is the button pressed or not.
i have used cordova--plugin-ionic-keyboard default plugin in my hybrid ios
application in ionic 3 .
when i open a payment gateway link by using iframe and i click on the textbox button for writing a card details keyboard will appear but if any case i want to go back after opening a keyboard then keyboard is not closed or hide for whole app then i have to close the app and start again.
i have searched a lot of things on internet but i can not get a appropriate answer which works for me.
i have tried out hide() method of plugin but whichever page i use this hide method that page is not open means app stop before the page on which i try hide method.
i also used in-app browser but still not work
I'm developing a Voip application.
When I press the lock button(app goes to sleep), and the server sends a request I present a local notification.
The local notification is presented as it should and The button slider text says "slide to answer". If I slide here, the app gets open.
However, if now I press again the lock button, and then unlock, the notification is still presented and the slider text has changed to "slide to unlock".
Now, when I slide to unlock, it's as if I pressed the "close" button on a regular notification bar, meaning the app won't open.
My question is why on the second time the local notification is still presented ? and if so, is there a way to track the unlock button event or the unlock slider so I can tell the server that I don't want to answer the call ?
Thanks
The notification is only a dialog (i.e., the user can interact with it directly) for a short time - until the device is locked again, either by using the button or automatically after a time-out of about 15 seconds.
After that, it turns into a notification. The user cannot interact with it directly, apart from reading the message.
Sorry, but it doesn't get any better unfortunately.