I am working on Xamarin forms app and I have implemented Media plugin to takePicture. It was working fine with my old theme in Xamarin Android "FormsApplicationActivity" but when I inherited MyActivity with "FormsAppCompatActivity" I am facing issues.
Actually after taking picture it is navigating me back to my start page.
I found that this is bug and have been reported here
https://bugzilla.xamarin.com/show_bug.cgi?id=36907
I have updated my xamarin forms to 2.3.4 but still the issue exists.
Does any one fixed this issue?
Related
I have a website created in react js, when I try to open it on windows or android the loading happens normally.
But on IOS devices it doesn't load anything from the site.
I tried to use https://polyfill.io/v3/polyfill.min.js in my index but I still couldn't.
PS: I don't have a mac to debug, tests only on an iphone version 15, I didn't find the iphone ios console to see the errors.
Problem solved, first step was to update the browserslist.
Second it was seen that the application was with storage in localStorage above what safari was handling, thus causing the error.
Removed localStorage.
Link:
https://github.com/browserslist/browserslist
Link:
https://stackoverflow.com/questions/1921048/limit-of-localstorage-on-iphone#:~:text=Mobile%20Safari%20on%20the%20iPhone,limit%2C%20afaik%2C%20on%20localStorage.
So I needed to install a new SDK to use the Compass ANE that I purchased. Which I did and the issue that I had with it was that the "TabbedViewNavigatorApplication" was not a supported component. So, after some research, the problem was with the new framework file. I took the framework file from the original 4.6.0 (file location shown below):
C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks
and put that in the new SDK file. This fixed this issue but now I have another issue where the old code I had working has now broken.
GeolocationEvent.UPDATE is no longer being called
Camera.setMode() causes a crash
UIComponent.addChild(Video) causes a crash
I am able to run the program with no errors.
Event is not being triggered for Geolocation in Flex
This person had a similar problem to me and he says he fixed his issue but I can't work out what he did:
I worked out the ultimate cause of this specific problem. It stems from Flash Builder not installing the complete Android SDK or the IOS SDK. Once I manually installed these by copying the SDK folders to their correct paths in Adobe Flash Builder, my GPS events were called successfully.
To sum up, if you get this trouble where the code and everything looks alright but it wont call up your events, then check to make sure that your latest SDKs for Flex are installed correctly for Android and or iOS
I haven't done any work with flex SDKs and if anyone can either recommend a place to download one which supports these features or has any advice on how to fix my issue I would be most grateful.
Solved issue. In case anyone looks for this, my old SDK would allow me to run the app from a device without requesting for permission for geolocation event. The new SDk forces you to use the permission status event.
Makes sense to me now. Just wish I had an error pop up asking for permission rather than just doing nothing.
I have a Xamarin project with an ios and a android app. In both I want to use the MvvmCross Visibility Plugin. On Android it generated the proper bootstrap file and usage works fine. On iOS I created a own bootstrap file, but I always get the following message:
MvvmCross.Platform.Exceptions.MvxException: Could not find plugin loader for type MvvmCross.Plugins.Visibility.PluginLoader
Also I tried to call the plugin loader manually in the InitializeLastChance:
MvvmCross.Plugins.Visibility.PluginLoader.Instance.EnsureLoaded();
But this leads to the same exception.
How can I solve this?
I am porting an old Phonegap 2 app to Phonegap 3.5
I created a new project using the CLI. Added the core plugins, including network-information.
Then I copied my html, css and javascript files.
I am now using XCode to further develop the app.
The app starts on the ios simulator but gets stuck when calling navigator.connection in the code.
I checked that the plugin files are there at platforms/ios/[project name]/plugins/org.apache.cordova.network-information :
CDVConnection.h
CDVConnection.m
CDVReachability.h
CDVReachability.m
The feature tag is there at the config.xml
I found this question Cordova 3 - iOs - navigator.connection Undefined which is the more similar I found to what I am experiencing, but it has not helped me solve the issue.
What else can I check? I need this plugin working. The migration from old phonegap has been a nightmare so far.
Thanks for any help.
I solved this by uninstalling the plugin, and installing it again. Even though everything looked ok, this solved the issue.
I'm trying to build an app that uses PhoneGap 0.9.6 and Sencha Touch 1.1.0 for Blackberry. (The app is already running fine on iOS and Android).
Unfortunately the crucial deviceready event does not fire anymore once I include the Sencha Touch files. This is how I tested:
Build the PhoneGap example app as described on http://www.phonegap.com/start#blackberry using the BlackBerry WebWorks Packager 2.0.0
Edit index.html so it's shorter and add alerts in init() and deviceInfo() and run the example on the Blackberry emulator 6.0.0.227. (Could not figure out how to add a code block with HTML so please go to http://pastebin.com/rUU1bDbL to see the modified code.) Everything is still working.
Include the css and js of Sencha Touch 1.1.0: http://pastebin.com/Y4Vydby1 After that change the function deviceInfo does not get called anymore.
According to this thread a similar problem with jQuery Mobile can be solved by changing the order of the includes but every combination I tried had the same problem.
Is this a general problem? Is someone successfully using PhoneGap 0.9.6 and Sencha Touch 1.1.0 on Blackberry?
Temporary solution: revert to PhoneGap 0.9.5.1
This seems to be a problem encountered by most people trying to work with Phonegap/Sencha on Blackberry recently.
We found that the basic PhoneGap Sample demo would break as soon as we included the sencha.js library, even though we were not even using it. I.e., the Sample demo runs fine on Blackberry, but if you then include sencha.js it no longer operates properly.
Someone reported that they resolved the problem by reverting to 0.9.5.1 version of PhoneGap. That worked for us, but 1.0.0 does not.
http://groups.google.com/group/phonegap/browse_thread/thread/3ed0192e44a49ad1/6be7980f9164c455?lnk=gst&q=blackberry+sencha#6be7980f9164c455
We would love to see this fixed so that we can be running the latest version of PhoneGap.
The issue has popped on on various forums lately, but doesn't appear to have Phonegap's attention yet.
e.g., https://github.com/phonegap/phonegap-blackberry-webworks/issues/44#issue_comment_form ("No one is assigned")
This seems like a major problem because it makes it impossible for anyone to do anything on a new Blackberry that uses PhoneGap/Sencha. I know there have been a lot of other things fixed between 0.9.5.1 and 1.0.0 so I am worried about fielding an app using the older version.
Keith Levi