react-native-firebase preload admob ad before showing the ad? - react-native-firebase

I'd like to preload the admob ad.
I'm showing the ad when user hits the backbutton in a modal.
But the ad loads too slow, and user leaves the screen before even seeing the ad.
Is there a way to preload the admob ad?

Related

Next Auth Azure Ad B2C signout problem session kills on app but not on azure AD

I am integrating Next Auth with Azure AD B2C i am able to create a login session when i login or signup on azure AD but when i signout using next Auth i am not signing out of azure AD and it automatically signins me in till the azure AD session expires that is 1 day after a day i will get option again to sign in.
Tried following documentation but got no result any help would be appreciated! The thing is next auth provides solution for signin sign up and stuff but the session at my app gets killed on signout but it kills the reason for MFA(multi factor authentication) if azure AD session is maintained which can be used again and signed in without credentials to my app!
You can either..
Force users to re-enter their credentials on each login
Reference: Next-Auth "Additional parameters" documentation
signIn("azure-ad-b2c", null, { prompt: "login" })
Defer calling signOut() until after you redirect to B2C, as B2C handles clearing its session
Reference: Benjamin Fox Blog, Azure B2C with Next-Auth
<button
href={`https://${process.env.AUTH_TENANT_NAME}.b2clogin.com/${process.env.AUTH_TENANT_NAME}.onmicrosoft.com/${process.env.USER_FLOW}/oauth2/v2.0/logout?post_logout_redirect_uri=${process.env.NEXTAUTH_URL}/auth/signout`}
>
Sign Out
</button>
where the /auth/signout page calls Next-Auth's signOut()

Flutter app login issues | creates new account with FB or Gmail login, but wont recognize original account created

I am having some login issues with my app, Hallo. The issue is if you create an account either through Facebook or google login, but then decide to delete the app, when reinstall the app and log back in, it does not recognize the original account you logged-in with.
Another problem is that sometimes, when you login with Facebook to the Hallo app, it will login to a different account you are not signed in to currently via the facebook app. (i have 2 accounts on Facebook).
I have tried to make sure I was logged in with the correct account, even loggedin with FB messenger, but that does not make a difference. Deleting the app and trying again, no difference.
We are using flutter and firebase, flutter plugin for FB login.
The original account exists as well, but no way to access it via login... It works from logining in to the account from another phone, but not phone the account was set up on.

Logout user when disabled in AD

We have configured ASP.NET Zero MVC + jQuery application to work with AD FS login.
We cannot figure out if a person is currently login to website and we disable the person's account in Active Directory then how can we logout the user from website so that he cannot access website anymore.
I'm new to AD and AD FS, can anyone please guide me to a starting point?
Yes - as per #John, AD access and manipulation is via LDAP calls via the .NET AD API.
This is not part of ADFS.
If the AD account is disabled, the user won't be able to login once their session has expired.
In terms of the website, you would need to monitor AD and then clear the cookies (which is what logout does) as appropriate.

Google analytics and Oauth (Facebook login)

TL;DR;
Facebook login makes the original referral URL change since and in GA it will look like they originally came from a Facebook.
We have the following problem using Google Analytics (UA) for Facebook (Oauth) login:
user lands on /page/1?utm_campaign=aaa and GA session is created with correct initial referrer, campaign etc.
user visits a few other pages and decides to register using Facebook
Facebook login makes the user's browser to go to facebook and come back which changes the referral and thus creates a new GA session
When user lands back on our callback url we fire an event that is converted to goal in GA
The problem is that all users who register using Oauth have the referral set to Facebook and the landing page to the page where they land after Facebook's callback because that's when GA "resets" the session :( .
Is there a way of joining the two sessions in GA and making it know that it is the same user all the time so that Facebook registers keep the full information on initial referrer, landing page, UTMs etc. ?
Follow FB SDK example and OAuth dialog will open in a popup window.
It will remove the issue with GA.
Most of OAuth providers that I know also support opening a dialog in a popup window.

Signout User in Server Side Flow of Google+

I am using Google+ SignIn in my website, and utilizing server-side SignIn flow, as documented here.
After sending token to my server, i manage the User Session, by my own code and SignIn button or Script, doesn't appear in subsequent pages.
However, i have a logout button, that takes user out, but i don't know how to logout him, from Google+ at same time, preferably on my logut page.
NOTE: I want to logout user from my app, not the Google Services.
We don't think it's a good experience for your site to be able to log the user out of all Google services. Consider how annoying it would be for a user if all of their Google tabs (like GMail and Youtube) stopped working because they clicked a button your site.
We think you should offer a logout button that logs the user out of just your site.

Resources