How to add a link to a website with a button and get back to the app - iphone

I was wondering how to add a link to a website so that when the user taps on a button, he will be taken to that webpage, but can then hit an x in the top left corner or hit the home button and then it will take them back to their app. I want it to be like iad where it doesn't close your app when you click on that link.

You can implement your own UIWebView in your app which will display the link, and handle all of the navigation. There are many tutorials on the web. Hope that Helps!

Related

Bottom native button

I'm sorry because I don't speak English very well. I would like to know if it is possible to control the bottom 3 native buttons of Android phone? Example When I am in the application, if I click on the home button or another can I write something in the console or another action before my application closes or even program that I am redirected to the page HomePage before my application closes?
For example, regarding the back button, you can control it with WillPopScope : https://api.flutter.dev/flutter/widgets/WillPopScope-class.html

Flutter Show a page every time the user opens the app, until they click a button, then it should show a different page when they open the app

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.

How to add custom action on back button in apple WatchKit app in swift?

In our Apple Watch swift application we have two controllers(Login and dashboard controller). After login user will land to dashboard page and after clicking on back button it is again landing to login page.
So, my requirement is that after clicking on back button on dashboard it should stay on same dashboard page.
So, How can I prevent back action and assign custom action once back button clicked in apple WatchKit application?
I think what you might be looking for is to call reloadRootPageControllers on WKInterfaceController:
https://developer.apple.com/documentation/watchkit/wkinterfacecontroller/2868441-reloadrootpagecontrollers
after successful login, and re-initialise your app's UI with the dashboard screen. This makes it impossible to go back to the login screen, and there will be no back button as the dashboard becomes the new root level app screen.
Hope this helps.

iPhone Message button from a picture in an app?

I would like to implement a feature on my app that when a picture is clicked that it opens up a dialog similar to the dialog opened when you are on a specific picture and you click the icon at the bottom left of the screen. When that is clicked it gives you 7 buttons (Email Photo, Message, Assign to Contact, Use as Wallpaper, Tweet, Print, and Cancel). Would it be possible to do something similar in an app I am developing?
I really would only want the functionality to message and email but mostly just messaging.
thanks
That's a UIActionSheet. To make the picture tap sensitive, you can attach a UIGestureRecognizer to it.

Admob's Adchoices to open in Safari instead of a webview

I am guessing this is a new type of ad for Admob.
Before, every time I click an ad returned by Admob, it opens the app store or a link in safari. But now, if I click on an ad that has the blue arrow on the right, it just shows a webview with the link. I am wondering if this can be avoided. I want the link to directly open in safari whenever I click the blue arrow. I noticed that the number of clicks for my ads have significantly decreased since this kind of ad appeared. So I'm thinking this may be related to the ad not opening in a browser.
Thank you very much for your help.