Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jonathan Pobst
    @jpobst
    maybe they have finally had to relent for Docker
    Alexander Köplinger
    @akoeplinger
    afaik the dotnet sdk generates a localhost certificate and registers that in the system cert store
    I guess you need to somehow propagate that to android
    Jonathan Pobst
    @jpobst
    so there's 2 issues: only allowing traffic to localhost, and only allowing SSL traffic
    Brendan Zagaeski
    @brendanzagaeski
    Oh, that makes sense. Interesting.
    IoTFier
    @IoTFier
    while deploying XF app to a 32 bit pixel3a emulator, I am getting an error System.ArgumentException: Illegal characters in path. Any thoughts to resolve this ?
    Severity Code Description Project File Line Suppression State
    Error XARDF7004: System.ArgumentException: Illegal characters in path.
    at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
    at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)
    at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
    at Xamarin.Android.Tasks.RemoveDirFixed.RunTask()
    at Xamarin.Android.Tasks.AndroidTask.Execute() 0
    IoTFier
    @IoTFier
    Hi @JonDouglas , @jonpryor , @Redth - any thoughts on my request above ? I am using VS 16.4.2 ; not having any issue with deployment of the app on iOS simulator.
    Jonathan Peppers
    @jonathanpeppers
    @IoTFier the error message you're getting there will be improved by: xamarin/xamarin-android@c0c3cb1
    But it seems like the build can't delete a directory
    Can you delete that file manually in File Explorer?
    Frank Szendzielarz
    @FrankSzendzielarz

    Hi folks. We're looking to move a discussion from StackOverflow somewhere where we might get help. Basically for Android since upgrading Xamarin.Forms components we're no longer getting push notifications handled when the app is stopped (not force stopped, not in Doze mode). Worked for earlier 3.? versions, not anymore. The SO conversation is in the comments section here https://stackoverflow.com/questions/59582314/how-can-i-receive-a-push-notification-when-my-xamarin-android-app-is-stopped

    Have folks here in the last 3 or 4 months run into any known Firebase/Xamarin issues that might help? Is this a forms thing or OK to discuss here?

    Jonathan Peppers
    @jonathanpeppers
    @FrankSzendzielarz when you updated Xamarin.Forms did other NuGet packages update?
    Like the support libraries, google play services, etc.
    Looking at the code on the stack overflow post, I would add logging throughout
    You need to know exactly which point things fail, by looking at adb logcat output
    Matthew
    @MattVon
    Hey @jonathanpeppers , I can't speak for Frank for his project but the source code shown in the StackOverflow posts is part of 2 projects. In my case, my work project and my sample project. Source code, NuGet packages (relevant to push) and any dependencies match across both the work project and the sample project, yet only the sample project works. That said, as in Franks experience my work project also had an update of XF from 3.6 to 4.x - that's the only thing that has sprung to my mind at the moment. I've used AppCenter logging but nothing happens, for my end I'll check adb logcat - I don't quite know how it works yet but hopefully Frank can add more input from his experience.
    Jonathan Peppers
    @jonathanpeppers
    The logging is so you can know how far it gets before it fails
    Since you are testing a notification when the app is closed you can't just use the IDE's debugger, adb logcat is a good option there
    When I implemented push in apps in the past, I had logging all over it, even in the production App Store build
    Push notifications just seem to break in weird ways
    Frank Szendzielarz
    @FrankSzendzielarz
    I have the logs using Visual Studios device logs viewer, same as logcat, getting that 'Could not activate JNI Handle 0x7fdbfee170 (key_handle 0x7d963d4) of Java type 'crc64925d64ef8a16450b/FirebaseService' as managed type 'CMSApp.Droid.FirebaseService'. type of error. Suspect ctor of [My]FirebaseService accessing App component or ctor related problem now- perhaps upgrade in XamarinForms (and corresponding play services etc) results in modified lifecycle. Just testing now.
    Frank Szendzielarz
    @FrankSzendzielarz
    OK sussed it. It's definitely the ctor. Got the notifications working. Am going to post this in the GitHub issue tracker.
    Jonathan Pryor
    @jonpryor
    @FrankSzendzielarz: could you try setting `MONO_GC_PARAMS=bridge-implementation=old`? https://docs.microsoft.com/en-us/xamarin/android/internals/garbage-collection#configuration
    juepiezhongren
    @juepiezhongren
    wellbye
    @fatfatson
    image.png
    hi,does anyone know why the stacktrace repeat multi times?
    Jonathan Pryor
    @jonpryor
    @fatfatson: async/await and nested exceptions are possibilities (throw new FooException("message", nestedException))
    wellbye
    @fatfatson
    but all the frames seem are same?
    multi same frames
    it's so boring
    richjones88
    @richjones88
    Does Xamarin cost? I have a Visual Studio Professional Edition licence
    Jon Douglas
    @JonDouglas

    @richjones88 https://docs.microsoft.com/en-us/xamarin/cross-platform/get-started/requirements

    It does not cost. You can use a Visual Studio Community edition to use Xamarin.

    richjones88
    @richjones88
    Awesome, thanks @JonDouglas
    Would you recommend having the physical hardware for devices I'm looking to target. I.e having an iPhone and iPad to target these devices?
    Jonathan Peppers
    @jonathanpeppers
    I would definitely recommend testing your app on real devices
    But day-to-day development you can use the simulators/emulators
    richjones88
    @richjones88
    thanks @jonathanpeppers
    Chandu1233
    @Chandu1233

    Hi All
    I have a query regarding AndroidClientHandler
    In the Xamarin documents it is said that AndroidClientHandler internally interacts with Native java code to make API calls. But when I decompile by apk and class files I could not find the HttpJava files.

    I actually would like to instrument the Http Java files inside the apk and repackage it, can some one please help me how AndroidClientHandler interacts with JAVA?

    Thanks

    Jonathan Peppers
    @jonathanpeppers
    @Chandul1233 the source for that class is here: https://github.com/xamarin/xamarin-android/blob/master/src/Mono.Android/Xamarin.Android.Net/AndroidClientHandler.cs
    The Java APIs used are part of the Android platform, and will not be in your app
    You might be better off adding the source code for this class to your project and changing the C# code as you need?
    Chandu1233
    @Chandu1233
    @jonathanpeppers thanks for your valuable suggestion, I had gone through the source code but I am thinking of compilation errors if I include the class in my plugin. I will try
    Miha Markič
    @MihaMarkic
    guys. is it just me, or latelly when I add an resource xml to Visual Studio 2019 latest stable, it doesn't set the file's Tool property
    it think it used to set it by default
    Jonathan Peppers
    @jonathanpeppers
    @MihaMarkic is it using MSBuild.Sdk.Extras? I don’t think it would work in that case
    Miha Markič
    @MihaMarkic
    @jonathanpeppers For any project. i.e. I create a new Android project, right click on layout directory, add new Android layout, layout1.xml file is created, designer opens. However, Custom Tool is not set at all. Build Action is correctly set to AndroidResource.
    @jonathanpeppers I can set Custom Tool manually and then it works as expected.
    moljac
    @moljac
    Zivjo Miha
    You probably want to mention jonathanpeppers not jonpryor
    Miha Markič
    @MihaMarkic
    @moljac Duh, silly me. You are absolutely correct
    moljac
    @moljac
    It is OK. Not big issue.
    Jonathan Peppers
    @jonathanpeppers
    @joj you might be interested to take a look next week ^^
    Or is there something we do in MSBuild that makes this work?
    So by default any AndroidResource will get this during a build. So it might just be that the IDE is not reflecting it until the project gets reloaded?
    Miha Markič
    @MihaMarkic
    @dellis1972 Hm, indeed it seems that to be the case. VS won't reflect it untill project is reloaded. Misleading a bit, but everything is fine. I don't care about that while it works :) thanks @jonathanpeppers
    Miha Markič
    @MihaMarkic
    another odd feature I'm seeing: Sometimes, after I stop a debugging app, the next time I start to debug it, it will show for few seconds and then stop with this message in output window: "Couldn't connect debugger. You can see more details in Xamarin Diagnostic output and the full exception on logs."
    Only full rebuild does the trick and I can debug again.