I am using this plugin and ImageCropper.Forms nuget package for cropping images in Xamarin.Forms
My Android project is working fine using above example but in iOS cropping window does not open
I Believe you are using Cropper from a page pushed using 'Navigation.PushModalAsync', try 'Navigation.PushAsync'.
I've raised an issue on github
https://github.com/stormlion227/ImageCropper.Forms/issues/22
Related
I have a flutter project and I want to integrate firebase push notification in it. I checked pub.dev and I found two official packages for firebase_messaging the default one and the web version. I'm planning to use same code-base for web, android and ios. In this case which package should I user?
you need to integrate just firebase_messaging plugin it also support web as well, whenever you reached package home page always check its support label which are mentioned on top kindly check attached screenshot of website for your reference.
enter image description here
and firebase_messaging_web only use for web so, you just need to integrate firebase_messaging not both.
I am using this nuget package
https://github.com/jamesmontemagno/MediaPlugin
It is available for both ios and android in pcl.
I am using it to make videos in my app.
Unfortunately, it has issues on iOS that are inside the project, not inside my code.
I am therefore trying to debug the project, not just implement the nuget library.
It does work fine on Android, so all I want to change is the iOS part.
Unfortunately, I dont know how to insert the same library when it isnt a nuget package but just the solution and also how to then adress it from pcl code.
I havent found a solution on google, but probably I dont know how to describe the problem well enought.
How can I debug an open source nuget package?
Thank you
Download or clone the src code,
Go to your project in VS,
Right click on your solution, choose Add -> Existing project,
Navigate to MediaPlugin-master\src\Media.Plugin and choose Media.Plugin.csproj file,
Right click on your iOS project (or whatever project where you use the plugin), choose Add -> Reference,
Check Media.Plugin and click OK,
Now you should be able to use the plugin in your project code after adding using Plugin.Media; (and the code of the plugin will be available to you).
I just updated to Xamarin Forms 5 and now I cannot compile my project. I get the error message
The $(TargetFrameworkVersion) (v9.0) is less than the minimum required $(TargetFrameworkVersion) for Xamarin.Forms (10.0). You need to increase the $(TargetFrameworkVersion)
However, as you can see from the screen shot below, my Target Framework Version IS 10. What am I missing??
That's actually very easy.
First, go to the Android project and right-click it.
Properties>Application>Compile using Android version(Target version).
Change that to Android 10.0
Then go to the Android Manifest option below the application option.
Change the Target Android version to 10 as well.
This should solve it.
Goodluck
Revert in case of queries
One of my students was using Visual Studio 2019 for Mac and had a similar error.
I shared this link with him. After reading the ideas above, he figured out his solution.
Below is what he told me.
Hi Harlan, thanks! That link helped me find the answer!
FYI: first I downloaded the Android 10.0 SDK.
Then I right clicked on my Android project, went to "General" and
updated "Compile using Android version: (Target Framework)" to Android
10.0 (Q).
Then I went to the AndroidManifest and updated the Target Android
version to 10.0. Then boom, no more build errors! I guess it didn't
like 9.0!
I had been pulling my hair out trying to fix this, thanks again for
the link!
I have a problem...
I'm try to add this plugin: https://github.com/danwilson/google-analytics-plugin.
I'm develop an application with: AngularJS, Ionic and Mobile First Platform 7.1(MFP), in this version of MFP I must add the plugin manually.
iOS works fine.
My problem is Android:
Error: "The import com.google.android cannot be resolved".
I download Google Play Services with SDK but the problem continues...
Any idea to solve this problem?
Regards.
This other plugin https://github.com/appfeel/analytics-google uses gradle dependencies which should solve this problem.
Other option could be to remove google play dependency from the plugin you mentioned and manually modify gradle (actually I don't recommend this option as gradle gets generated automatically each time you remove/add the platform).
Other option is to modify the plugin itself (maybe a github fork). Here you can see what should it be modified: https://github.com/appfeel/analytics-google/pull/11/files
i am facing issue like one of my samsung device display correct css and another samsung device does not.
in right side of images(android version 4.1.2) and left side (android version 4.4.2) the problem in 4.1.2 device.
any solution for this or any BUG in android version.
i apply ( .platform-android4_1{} ) css also but can't effect.
example(Header and buttons are smaller,badges are small)
help me please .
thank you
Most of ionic android developers face this issue because of different verions of web-views environment on different devices. Solution of this is to add crosswalk plugin to your project.This makes your Cordova / Ionic application use the Crosswalk WebView instead of the System WebView. It patches own browser with application so it runs in that having same specific environment on each device. So application behavior will be same on each device.
add this plugin using following command:
ionic plugin add cordova-plugin-crosswalk-webview
More about Crosswalk, see link : https://crosswalk-project.org
Read this blog post by ionic to understand how it helps you stablize and improve behavior of hybrid applications across all versions of android.