You MUST call Rg.Plugins.Popup.Popup.Init(); prior to using it.
See original GitHub issuei 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
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)

Top Related StackOverflow Question
add in MainActivity Rg.Plugins.Popup.Popup.Init(this, bundle); add in AppDelegate Rg.Plugins.Popup.Popup.Init ();
Just put Rg.Plugins.Popup.Popup.Init(); in your AppDelegate file for iOS after the Xamarin.Forms init