question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Azteca-7commented, Sep 23, 2018

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

2reactions
yatespeter100commented, Jun 26, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - You MUST call Rg.Plugins.Popup.Popup.Init(); prior to ...
Simply, you need to call Rg.Plugins.Popup.Popup.Init(); on startup. Andriod Example namespace HelloXamarinFormsWorld.
Read more >
Initializing Rg.Plugin.Popup
Rg.Plugin.Popup must be initialized on each platform. Critical Note. With the exception of the BackButton handler for Android there is NO platform specific...
Read more >
You MUST call Rg.Plugins.Popup.Popup.Init(); prior to using it
Simply, you need to call Rg.Plugins.Popup.Popup.Init(); on startup. Andriod Example namespace HelloXamarinFormsWorld.
Read more >
Problem with Rg.Plugin.popup plugin - Xamarin.Forms
So i've installed this plgin called rg.plugin.popup, and its needed to define it in mainActivity like this. Rg.Plugins.Popup.Popup.Init(this, bundle);.
Read more >
Pixel-Perfect, Customizable Popups for Xamarin.Forms with ...
The Rg. Plugins. Popup library has been around for a long time and with good reason: it's amazing! This allows you to create...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found