Rg.plugins.popup: You MUST call Rg.Plugins.Popup.Popup.Init(); prior to using it.

Created on 11 Jun 2018  Â·  5Comments  Â·  Source: rotorgames/Rg.Plugins.Popup

i am using Rg.Plugins.Popup.Popup.Init(); in xamarin.ios appdeligate.cs

Rg.Plugins.Popup.Popup.Init();
global::Xamarin.Forms.Forms.Init();

        LoadApplication(new App());
        return base.FinishedLaunching(app, options);

in android it works fine but when i use it in IOS it throws below
"{System.InvalidOperationException:

You MUST call Rg.Plugins.Popup.Popup.Init();
prior to using it.

See more info: https://github.com/rotorgames/Rg.Plugins.Popup/wiki/Getting-started#initialization
at NInterpret.Interpreter.interpretBlock (System.Object[] args, System.Object[] locals, Mono.Cecil.Cil.Instruction initialInstruction, Microsoft.FSharp.Collections.FSharpSet1[T] inTries, Microsoft.FSharp.Core.FSharpOption1[T] lastException) <0x103d97750 + 0x12b20> in <5ae222acf704aa6fa7450383ac22e25a#7133b0e19fc5b1608fc301d6ca3bcd19>:0
at NInterpret.Interpreter.interpret (System.Object[] args) <0x103d80ff0 + 0x00247> in <5ae222acf704aa6fa7450383ac22e25a#7133b0e19fc5b1608fc301d6ca3bcd19>:0
at NInterpret.Interpreter.callAMethod (NInterpret.AMethod m, NInterpret.AType[] ptypes, NInterpret.AType[] genericMethodArgs, System.Collections.Generic.Dictionary2[TKey,TValue] genericArgsIndex, System.Object[] args, System.Collections.Generic.List1[T] byRefArgs, Microsoft.FSharp.Core.FSharpOption1[T] byRefTarget, System.Object target, System.Boolean virtualCall) <0x103d7e460 + 0x0054b> in <5ae222acf704aa6fa7450383ac22e25a#7133b0e19fc5b1608fc301d6ca3bcd19>:0 at NInterpret.Interpreter.callMethodReference (System.Collections.Generic.Dictionary2[TKey,TValue] gargs, Mono.Cecil.MethodReference ms, System.Boolean virtualCall) <0x103d7f5a0 + 0x00b57> in <5ae222acf704aa6fa7450383ac22e25a#7133b0e19fc5b1608fc301d6ca3bcd19>:0
at NInterpret.Interpreter.interpretBlock (System.Object[] args, System.Object[] locals, Mono.Cecil.Cil.Instruction initialInstruction, Microsoft.FSharp.Collections.FSharpSet1[T] inTries, Microsoft.FSharp.Core.FSharpOption1[T] lastException) <0x103d97750 + 0x028c3> in <5ae222acf704aa6fa7450383ac22e25a#7133b0e19fc5b1608fc301d6ca3bcd19>:0
at NInterpret.Interpreter.interpret (System.Object[] args) <0x103d80ff0 + 0x00247> in <5ae222acf704aa6fa7450383ac22e25a#7133b0e19fc5b1608fc301d6ca3bcd19>:0
at NInterpret.Interpreter.newobj (System.Collections.Generic.Dictionary2[TKey,TValue] gargs, Mono.Cecil.MethodReference m, System.Object[] createInstanceArgs) <0x103d79ed0 + 0x007ef> in <5ae222acf704aa6fa7450383ac22e25a#7133b0e19fc5b1608fc301d6ca3bcd19>:0 at NInterpret.Interpreter.interpretBlock (System.Object[] args, System.Object[] locals, Mono.Cecil.Cil.Instruction initialInstruction, Microsoft.FSharp.Collections.FSharpSet1[T] inTries, Microsoft.FSharp.Core.FSharpOption1[T] lastException) <0x103d97750 + 0x0f22f> in <5ae222acf704aa6fa7450383ac22e25a#7133b0e19fc5b1608fc301d6ca3bcd19>:0 at NInterpret.Interpreter.interpret (System.Object[] args) <0x103d80ff0 + 0x00247> in <5ae222acf704aa6fa7450383ac22e25a#7133b0e19fc5b1608fc301d6ca3bcd19>:0 at NInterpret.Interpreter.callAMethod (NInterpret.AMethod m, NInterpret.AType[] ptypes, NInterpret.AType[] genericMethodArgs, System.Collections.Generic.Dictionary2[TKey,TValue] genericArgsIndex, System.Object[] args, System.Collections.Generic.List1[T] byRefArgs, Microsoft.FSharp.Core.FSharpOption1[T] byRefTarget, System.Object target, System.Boolean virtualCall) <0x103d7e460 + 0x0054b> in <5ae222acf704aa6fa7450383ac22e25a#7133b0e19fc5b1608fc301d6ca3bcd19>:0
at NInterpret.Interpreter.callMethodReference (System.Collections.Generic.Dictionary2[TKey,TValue] gargs, Mono.Cecil.MethodReference ms, System.Boolean virtualCall) <0x103d7f5a0 + 0x00b57> in <5ae222acf704aa6fa7450383ac22e25a#7133b0e19fc5b1608fc301d6ca3bcd19>:0 at NInterpret.Interpreter.interpretBlock (System.Object[] args, System.Object[] locals, Mono.Cecil.Cil.Instruction initialInstruction, Microsoft.FSharp.Collections.FSharpSet1[T] inTries, Microsoft.FSharp.Core.FSharpOption1[T] lastException) <0x103d97750 + 0x028c3> in <5ae222acf704aa6fa7450383ac22e25a#7133b0e19fc5b1608fc301d6ca3bcd19>:0 at NInterpret.Interpreter.interpretBlock (System.Object[] args, System.Object[] locals, Mono.Cecil.Cil.Instruction initialInstruction, Microsoft.FSharp.Collections.FSharpSet1[T] inTries, Microsoft.FSharp.Core.FSharpOption`1[T] lastException) <0x103d97750 + 0x005eb> in <5ae222acf704aa6fa7450383ac22e25a#7133b0e19fc5b1608fc301d6ca3bcd19>:0 }"

what should i left in ios please guide me

Most helpful comment

add in MainActivity
Rg.Plugins.Popup.Popup.Init(this, bundle);
add in AppDelegate
Rg.Plugins.Popup.Popup.Init ();

All 5 comments

Just put Rg.Plugins.Popup.Popup.Init(); in your AppDelegate file for iOS after the Xamarin.Forms init

Already Set it but got the problem with same error Himanshu Trivedi Sr. Software Engineer   Direct: +91-7940031384 US: +1-201-203-9313 (TOLL FREE) Email: himanshu.[email protected]     Visit our website : www.ViitorCloud.com Please consider the environment before printing this email ---- On Wed, 27 Jun 2018 02:34:40 +0530 deveng notifications@github.com wrote ---- Just put Rg.Plugins.Popup.Popup.Init(); in your AppDelegate file for iOS after the Xamarin.Forms init — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

@Himanshuvc You can't use Rg.Plugins.Popup.Services.PopupNavigation if you have not initialized this plugin. You must invoke Init method before to use PopupNavigation in your code.

add in MainActivity
Rg.Plugins.Popup.Popup.Init(this, bundle);
add in AppDelegate
Rg.Plugins.Popup.Popup.Init ();

1.6.3

System.InvalidOperationException: 'You MUST install Rg.Plugins.Popup to each project and call Rg.Plugins.Popup.Popup.Init(); prior to using it.
See more info: https://github.com/rotorgames/Rg.Plugins.Popup/wiki/Getting-started#initialization'

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FoggyFinder picture FoggyFinder  Â·  8Comments

YZahringer picture YZahringer  Â·  4Comments

VladislavAntonyuk picture VladislavAntonyuk  Â·  3Comments

juanmalm picture juanmalm  Â·  4Comments

WorldOfBasti picture WorldOfBasti  Â·  6Comments