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.

App crashes on Android 7.0 Moto G4 and LGE LG-H872 device

See original GitHub issue

I have created an app.I have used the Rg.Plugins.Popup plugin from nuget package manager.When I try to open the popup it crashes on my Moto G4 and LGE LG-H872 Android device.I am opening the popup using the follo. code

                    NavigationParameters oNavParams = new NavigationParameters();
                    oNavParams.Add("Mode", "MainPageLocation");
                    oNavParams.Add("selectedItem", Value);
                    await _navigationService.NavigateAsync("MyrgModal", oNavParams);

After opening the popup it just gets stuck and crashes.I am not able to find the reason of the crash.It seems to be working on other versions of Android OS.

Details: Rg.Plugins.Popup-1.1.3.73-pre Xamarin.Forms-2.5.0.280555 Android OS-7.0 Device Model-Moto G4 and LGE LG-H872

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
LuisDev99commented, Oct 8, 2018

@Deba22 i fix the problem by just putting Rg.Plugins.Popup.Popup.Init(this, bundle); in MainActivity in the android project (In previous version, i didnt have the need to put it but i guess its needed now). I discover that putting pages:PopupPage and the one you suggested which is popup:PopupPage, both do the job.

0reactions
Deba22commented, Sep 5, 2018

I was able to get it working.I created a new project from scratch and updated the Rg.Plugins.Popup to 1.1.4.168.Instead of using pages:PopupPage I used popup:PopupPage in my XAML. This is how my XAML looks:

<?xml version="1.0" encoding="utf-8" ?>
<popup:PopupPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:popup="clr-namespace:Rg.Plugins.Popup.Pages;assembly=Rg.Plugins.Popup"
             xmlns:prism="clr-namespace:Prism.Mvvm;assembly=Prism.Forms"
             xmlns:local="clr-namespace:MyApp"
             prism:ViewModelLocator.AutowireViewModel="True"
             x:Class="MyApp.Views.PopupBox">
<StackLayout VerticalOptions="Center" HorizontalOptions="Center">
                    <StackLayout Orientation="Vertical" HeightRequest="200" WidthRequest="300" BackgroundColor="White">
                        <ListView x:Name="sampleList">
                        </ListView>
                    </StackLayout>
</StackLayout>
</popup:PopupPage>

Now it seems to be working in Release mode too.Thank you for the help

Read more comments on GitHub >

github_iconTop Results From Across the Web

Thread: App crashes instantly Moto G4 (Android 7.0)
App crashes instantly Moto G4 (android 7.0). Hi, I'm using ctf 2.5 developer (288.3 steam version), and for the last week or so...
Read more >
Nougat-error - English Motorola - MOTO COMMUNITY
I am having problems since I updated to nougat in my moto g4 plus. ... from home screen,camera app is crashing,instagram started crashing....
Read more >
Apps keep randomly crashing : r/MotoG
Hi, I have a problem... My moto g8 play is crashing and I don't know what to do. I've done everything to fix...
Read more >
Android 7.0 Nougat is giving a tough time to users, try ...
The app crash rate has increased considerably and the handsets often freeze even in the most basic tasks with the latest Android 7.0...
Read more >
How to Fix App Crashes or Force Closes on Motorola Moto Z2 ...
Method 2: Close and Reopen the App. If a specific app is crashing or force closing, try closing it and reopening it: Open...
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