Does react-native app refresh after setting permissions? (iOS only) - react-native

On some app page, I call
Linking.openURL('app-settings:1')
To open the Settings app to allow someone to give me access to the Camera if they have not already.
When I change a setting, the app refreshes, and pulls up the initial/start screen.
Is this standard behavior? Can I stop the refresh?
Is there a way to listen to the change-in-permissions without modifying a Redux state, and redirect to different pages if the permission was granted/not granted?

Related

How to allow user to log in with another user account via facebook when using InAppBrowser-reborn in react native app

I'm using react-native-inappbrowser-reborn package to open signIn with facebook page, when I try to Signin, automatically logged in to previous account.I'm not able to choose an account.I think this happens due to previous session that stored inside InAppbrowser. I can`t find a way to clear them from app side. Is there any solution to prevent using previous session cookies??
Need a solution to work in both ios and android.

React-Native: Open mobile app from website

Can that be possible? I have a web app and a mobile app as well. The user goes to website and there is a button "Download App for Mobile". When the user clicks on the button, if the app is already installed, the app should be opened otherwise the user must be redirected to the respective store with the link to download the app from store. Any help in the form of Articles, Videos or suggestions would be highly appreciated.
To do this you would have to use sockets and make a background service on your mobile app that listens to an event. When you click on the button an event should be fired from the browser which when listened by the background service, brings the app to foreground. And it will require your web app and react-native to have a socket connection. If no connection is established then you can redirect the respective store. To create socket connection you would need to use a server for communication between mobile app and web app.
read about
getInstalledRelatedApps()
see here for more information
https://web.dev/get-installed-related-apps/
chromeStatusNewFeature

Cookies in Vue SSR

I am building an app using .Net Core with VueJs along with JavascriptServices&NodeServices for ServerSideRendering, and Identity as auth mechanism.
Scenario :
I navigate to /details page - having some hidden info because the user is not logged in (so, User.Identity.Name) is null.
I click login, a pop-up shows up, I enter my credentials, and after the AJAX call is made to auth the user, I do a full refresh of the page using location.reload(true).
This works on chrome desktop but on mobile devices it doesn't; on mobile browsers it works if I "fake navigate away" meaning that I go back one page and then come back (so I don't trigger a SSR).
Does anybody have an idea why this doesn't work?

OneSignal React Native Push iOS Universal Linking (avoid WebView)

Using onesignal, When one sets the push notification value "url" for a notificaiton to open in an app, aka universal linking, by default the app is opened and a webview screen emerges (not on android, only iOS - at least in React Native).
I want to ignore this webview. I don't want to open it. The url is supposed to open the app to the corresponding universal link/deep link, not my domain on a web broswer. If I click on a similar link from a non-notificaiton source, it takes me to the screen, why does the push notification not do this?
How do I override this? I can't seem to figure it out. Do I have to manually implement this? Why does it open a webview by default and not the corresponding screen in the app instead?
It seems you have to manually route it if one were to go this route, unfortunately. From what I'm gathering bits here and there.
this is a bad choice to go with if you're using iOS:
https://www.myapp.com/p/fdsafa
this is better:
myapp://p/fdsafa
unfortunately onesignal has it setup in some weird way with the https://www.myapp.com that it makes it useless on iOS, unless your actual intention is to open an actual web url in a webview. Where as myapp:// is compatible with both platforms (just don't put a host on Android, leave the host out, just do the myapp as the schema). Works.

How to pass Login With Google Process in Cocoa WebView

I am developing a cocoa app for Mac OSX. It's a basic browser application and I use webview component.
In the page I want to connect, there is standard Login with Google Account button in order to login with my existing Google Account. When I clicked on this button nothing happens.
The same functionality works properly when I visited the same page by using Safari or any other browser but there is no reaction on webview component.
I've checked the action behind the Google's login button and here is the JS code.
onclick="return Dialog.Login.loginWithGoogle(false, 'https://www.mywebsite.com/-/oauth2callback', 'https://www.mywebsite.com/')"
As a part of the standard oauth process the process also has many redirections after this URL is called and normally should be completed at my site's login screen as expected. However, webview doesn't handle this.
Please note that the web site I am trying to connect in my webview is not belong to me and I have no control on it.
I checked many solutions on the web for 2 days but nothing helped.
Any help/hint will be appreciated.