Open Cvijo opened 2 years ago
Hmm, what error do you get from this? As long as what you pass is of type Android.Content.Context it should be functional
There is no error, not in debug window or anywhere it just doesn't work. Popup doesn't show, if I put it in my main activity it works. And yes I am passing "this" from splash activity
Huh, could you try and remake what you're doing in a demo project, zip and put it here, and i can go through and poke about?
Hi, here is a simplified version of the demo, when you init Rg on another thread or on another activity it doesn't work, if you uncomment the first line it works.
I remove most of the things and simplified activity but it reproduces issues with Rg .. navigation stacks are still counting but the popup doesn't show
I'm facing the same issue. If somebody is using Prism.Plugin.Popups
it is required to call Rg.Plugins.Popup.Popup.Init(this);
in SplashActivity (before Forms init) and again in MainActivity. Simply moving it from SplashActivity to MainActivity does not solve the problem.
Affected version: 2.0.0.14
💬 Questions and Help
Hi, In Xamarin I am using splash screen to play some Lottie animation and during animation, I am initializing all libraries (even creating a new App())
So my Splash screen inherits Activity, IAnimatorListener when my Lottie animation start I begin registering all libraries in background thread
part of code in my SplashActivity
everything works fine except this line
Rg.Plugins.Popup.Popup.Init(context);
if I move it to main activity it's working I am just wondering why .. it's no problem to put it in the main activity it's just a few ms initializations but maybe I am doing something wrong here?I even try to use Application.Contex instead of this, tried to inherit
FormsAppCompatActivity
instead ofActivity
and many other things but only init() in main activity working