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?
Related
I have a problem in Xamarin project. I use VS2015 and I try add App Link to my iOS app.
I found a tutorial here. When I try to open my link in Safari everything works fine, but when debugger is in the OpenUrl function, I get this exception:
System.NotImplementedException: Not Implemented in Portable Class Library. Use a platform specific assembly instead.
The code is:
var rurl = new Rivets.AppLinkUrl(url.ToString());
The URL has the address which I added in Safari. Any ideas?
The Rivets component that you are using cannot invoke the platform-specific code to work with the AppLink. Make sure you have also added the Rivets component or DLL to your iOS project, not just your PCL project.
I'm using the Active Directory Authentication Library as found here I've then created a binding project in Xamarin and then created some login code to manage logins to our app via ADAL.
Everything was working fine until I moved the app to a Unified app. Ever since doing that when I try to authenticate, I get the following error:
The required resource bundle could not be loaded. Please read the ADALiOS readme on how to build your application with ADAL provided authentication UI resources.
I have the required storyboards as part of the main iOS app, but for some reason the ADAL library can't seem to find them in the main bundle.
Any insight greatly appreciated!
James, did you try ADAL v3? It supports Xamarin natively, without the need of using bindings against the native ADALs. Although bindings are technically possible, we consider ADAL v3 to be the main way in which we support Xamarin integration.
Please see https://azure.microsoft.com/en-us/documentation/samples/active-directory-dotnet-native-multitarget/ for an example. ADAL v3 is still in preview, but we are working hard to release it ASAP.
For the record, for whatever reason, just adding the Storyboard to the iOS Xamarin project doesn't seem to work any more. If you add the compiled ADALiOS.bundle from the ObjC library to you Xamarin project, it will work.
You add it by selecting add files from folders in Xamarin Studio and selecting the folder directly above the .bundle file in the output tree.
Makes sense I guess.
I am not using cli for my cordova project ,i got the cordova 3.5.0 project from there site and integrated with my project.All the custom plugins created by me is working fine.But the API's like device is not accessible.I have added the CDVDevice to config.xml but still i can't able to access the device object.
So please help me to solve this problem.
In order to correctly working the Cordova requires you to have cordova_plugins.js file near the cordova.js. That file contains registration of the JS API.
The easiest part is use Plugman to install plugins inside your custom project, that way, it will handle all work on creation of cordova_plugins.js.
Official Cordova documentation for the Plugman
See the possible related answer Cordova 3.5 embedded webview with plugins where I put more insights about how you could modify cordova_plugins.js in case you desperately need this, but I would recommend you to use Plugman.
I have written and exported a Cordova 3.5.0 PhoneGap Application using the Telerik Platform. The app is using jQuery Mobile and an InAppPurchasing plugin.
The only other plugins used are Cordova Splashscreen and Cordova Statusbar.
I can run the app no problem when i install it via iTunes on to my iPad. However, when I submit the app via Application Loader, I get the following errors:
I was tempted to go in and edit/look for the lines that reference these 'non-public selectors' myself but the Cordova350 file is a unix executable file that when opened looks like bytes of hex codes.
I cant seem to find anything from googling around about anyone experiencing a similar issue. Is this just a setting somewhere I have forgotten to untick? Any help would be appreciated
I am getting this error code when i open a phonegap html site in iOS:
gap:["Device","getDeviceInfo","Device341875241"]
gap:["NetworkStatus","getConnectionInfo","NetworkStatus341875242"]
gap:["App","show","App341875243"]
It is working with Android perfectly.. i am using cordova 2.7.0.
What´s that supposed to mean?
thanks!
You must add the correct cordova-2.7.0.js file that is specific to iOS. This error usually occurs when you add cordova JS file which is not specific to a particular platform. In other words, you should add the iOS specific cordova-2.7.0 JS file to your iOS PhoneGap project.
Possible scenario:
You might have wrongly included the Android specific cordova-2.7.0 JS file in your iOS project.
Fix:
Just remove the current cordova JS file and add the cordova-2.7.0.js file from iOS folder in the downloaded Phonegap-2.7.0 folder