I have followed this docs in implementing in taking a photo and picking a photo in Xamarin. I was able to implement and worked in picking a photo but I have error in using the function TakePhotoAsync() which is used to open the camera to take picture. I have googling for possible solutions but nothing works for me. I did not modify any permission or add from the current which work on Picking a photo.
It crashes in this line:
var file = await CrossMedia.Current.TakePhotoAsync(new Plugin.Media.Abstractions.StoreCameraMediaOptions
{
PhotoSize = Plugin.Media.Abstractions.PhotoSize.Medium
});
I am testing in the emulator: AVD_for_Galaxy_Nexus(Android 6.0 - API 23)
Exception:
System.ArgumentException: Unable to get file location. This most likely means that the file provider information is not set in your Android Manifest file. Please check documentation on how to set this up in your project.
By the way, I did solve the error by downgrading the version of the plugin to Xam.Plugin.Media 3.1.2 from Xam.Plugin.Media 3.1.3. I didn't change anything in my codes.
Related
I'm trying to run the tuner part of the cookbook so as to use it as a starter for another project.
The cookbook version works well but my project must be missing a setting somewhere.
The controller fails with
throwing -10878
I've set up the following:
a plist with "Privacy - Microphone Usage Description" set
an entitlements file with audio input set to yes
It looks like it should work and the error is not very descriptive because it's doing :
guard let device = engine.inputDevice else { fatalError() }
So It gives Fatal error when it fails.
What should I try next? to debug this?
Add "Privacy - Microphone Usage Description" permission to your info.plist. You can see an example of how it is added in the Cookbook app. Select your target, then the info tab to add the row.
Edit: Oh sorry you already tried adding this to the plist. throwing -10878 is a known issue that is possibly an Apple related issue, not an AudioKit one. That warning shows up in the Cookbook built too but it doesn't result in a crash or the app not building.
I am using flutter image_picker and almost all is good except for when i try to do something with file generated on pickVideo from gallery (just on IOS 13 real device) it give error:
OSError: Operation not permitted [Errno 1].
Some extrange is that this video file can play with video_player and i can work good with camera file and image pick file generated with image_picker, but video gallery file can not do another thing than play with video_player.
For example, trying to get file size or copy it to another file fails, code example:
var videoFile = await ImagePicker.pickVideo(source: ImageSource.gallery);
print("File path........${videoFile.path}");
print("...................Size: ${await videoFile.length()}");
Directory appDocDir = await getApplicationDocumentsDirectory();
String appDocPath = appDocDir.path;
File newfile = videoFile.copy("${appDocPath}/video.MOV");
I saw that all permissions are good, mainly NSPhotoLibraryUsageDescription on Info.plist, but it does not work.
I need to say that on android all is working fine.
I hope some one can help me.
please go through the documentation of Image_picker where it says for ios setup:
Add the following keys to your Info.plist file, located in /ios/Runner/Info.plist:
NSPhotoLibraryUsageDescription
NSCameraUsageDescription
NSMicrophoneUsageDescription
https://pub.dev/packages/image_picker
I solve my problem using another library call file_picker, i think image_piker is not workin good since IOS 13, they need upgrade it.
1) Storing images locally to be displayed later via the html, most all of the docs say to store them like in ~/images/image1.png. Typescript/Nativescript says to store these by doing this:
fileSystemModule.knownFolders.currentApp(), then join the "/images/image1.png and write the file. This works great on IOS and Android in debug mode and the simulators, but it doesn't work in a Release version of IOS. IOS gives an error saying you can't access this folder. The nativescript documentation clearly says for currentApp that " iOS - this folder is read-only and contains the app and all its resources.".
Thus, if it's IOS, I do what the doc for the Filesystem/IOS module says:
var dirPath;
if (isIOS) {
dirPath = fileSystemModule.knownFolders.ios.library();
dirPath = fileSystemModule.path.join(fileSystemModule.knownFolders.ios.library().path, '/Application Support/myapp/images/image1.png');
I'm able to write and read files from here from TS code fine. However,
2) For displaying these in my page, for an image in my html, I have src='~./Library/Application Support/myapp/images/image1.png' and it's not able to find them. Any suggestions appreciated.
There are a lot of docs saying how to write files locally using currentApp(), but none talk about how this doesn't work in the Release version of IOS.
When debugging USB using Apache Flex Compiled SDK - 14.16.16 I get the following error:
Error occurred while packaging the application:
ld: can't open -non_global_symbols_no_strip_list file:
/Users/CRMantra/AIR_14.16.16/lib/aot/lib/local_nostrip.arm-air.txt
Compilation failed while executing : ld64
__________ Found this relating to the platform.xml used in compiling the ANE. https://forums.adobe.com/thread/1220219
I have two questions:
1) I need the permissions for the Maps to throw a NativeDialog box using the requestLocationAuthorization(true) - so User will set permission normally.
2) Whats the recommended and tested SDK version for this ANE. Also, have you been able to set permissions via a Dialog Box from tested SDK? From my reading AIR 16 is the recommended version to set permissions and get around the Geo Object always muted issue. I did notice that NativeApplication.nativeApplication.executeInBackground = true; will fix the Geo.mute issue as well, but it still needs the above mentioned Native Dialog Box, and it requires user to set Privacy/Maps each run of the .ipa
Thanks,
B
I found if you copy the SDK to another location and dereference any symbolic links that the issue disappears.
i.e.
cp -RLf /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk SOME_OTHER_LOCATION
I have a problem getting the new crash reporting in Parse 1.6 to work. The symptoms are the same as parse.com 1.6 crash analytics not working , but my reputation is too low to add my information.
1) I followed the quick start and guide to set up crash reporting and upload my symbols
https://parse.com/docs/ios_guide#crashreporting/iOS
https://parse.com/apps/quickstart#analytics/crashreporting/ios/existing
2) I'm following the instructions to generate a crash report by running the app directly in the simulator (iOS 7-8) and on the device (iOS 6) without a debugger attached. On the simulator I can actually see the minidump being created in Library/Parse/PFCrashReports.
3) When launching the app again I get the message "Breakpad Uploader: unable to determine minidump file length" and the crash dump disappears from the file system. So I assume Parse uses google breakpad under the hood, and the error is created by Uploader.mm because the call to stat() fails. I tried the same call in my own code and it succeeds there.
My gut feeling is that there is either a permission problems, or some other code locks the file while the uploader tries to access it. As the parse libraries are closed source it is hard to check anything, though. It is a bit suspicious that other people don't seem to have a problem with this, which may mean some other settings or configuration problem.