Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all 204402 articles
Browse latest View live

Xamarin Form IAP error the application is not configured for billing through Google Play

$
0
0

I am receiving the above error [0:] Error: Plugin.InAppBilling.Abstractions.InAppBillingPurchaseException: Unable to process purchase.

I am using Plugin.InAppBilling library.
My code looks like this.
public async Task PurchaseItem(string productId, string payload)
{
var billing = CrossInAppBilling.Current;
try
{
var connected = await billing.ConnectAsync(ItemType.InAppPurchase);
if (!connected)
{
//we are offline or can't connect, don't try to purchase
return false;
}

                //check purchases
                var purchase = await billing.PurchaseAsync(productId, ItemType.InAppPurchase, payload);

                //possibility that a null came through.
                if (purchase == null)
                {
                    Console.WriteLine("Purchase canceled!");
                }
                else if (purchase.State == PurchaseState.Purchased)
                {
                    var id = purchase.Id;
                    var token = purchase.PurchaseToken;
                    var state = purchase.State;
                    return true;
                }
            }
            catch (InAppBillingPurchaseException purchaseEx)
            {
                //Billing Exception handle this based on the type
                Debug.WriteLine("Error: " + purchaseEx);
            }
            catch (Exception ex)
            {
                //Something else has gone wrong, log it
                Debug.WriteLine("Issue connecting: " + ex);
            }
            finally
            {
                await billing.DisconnectAsync();
            }
            return false;
        }

For info all the below are checked

AndroidManifest must include "com.android.vending.BILLING" permission.
APK is built in release mode.
APK is signed with the release certificate(s). (Important: with "App Signing by Google Play" it only works if you download directly from GooglePlayStore!)
APK is uploaded to alpha/beta distribution channel (previously - as a draft) to the developer console at least once. (takes some time ~2h-24h).
IAB products are published and their status set to active.
Test account(s) is added in developer console.
My testing app is the same that is currently published in the Play Store


Is CoreNFC tag writing for iOS 13 coming to Xamarin.iOS?

$
0
0

I've been learning how to use CoreNFC in Xamarin via their documentation here:
https://docs.microsoft.com/en-us/xamarin/ios/platform/introduction-to-ios11/corenfc
...but it only mentions the ability to Read NFC tags.

As I understand, Apple added the capability to write NFC tags in CoreNFC in the iOS 13 SDK.

Is Xamarin working on implementing this, or should I get started doing it myself? I didn't want to waste the effort if it's already underway.

Getting a NullReferenceException in Android when backing out of app

$
0
0

I'm using Xamarin Forms 4.2.0 and utilizing Xamarin.Forms Shell. Pressing the back button seems to work find when navigating through the various screens in my app, however, when I press back to exit the app when debugging I get a NullReferenceException:

09-30 14:49:52.866 D/Mono    ( 1085): Loading reference 10 of /storage/emulated/0/Android/data/com.companyname.agentconnectmobile/files/.__override__/Xamarin.Forms.Platform.Android.dll asmctx DEFAULT, looking for System.Runtime.Serialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=abc123
09-30 14:49:52.866 D/Mono    ( 1085): Assembly Ref addref Xamarin.Forms.Platform.Android[0x799acc0e00] -> System.Runtime.Serialization[0x7935aa8d00]: 3
09-30 14:49:52.866 D/Mono    ( 1085): Loading reference 1 of System.Runtime.Serialization.dll asmctx DEFAULT, looking for System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=abc123
09-30 14:49:52.866 D/Mono    ( 1085): Assembly Ref addref System.Runtime.Serialization[0x7935aa8d00] -> System.Xml[0x799be73480]: 5
09-30 14:49:52.918 D/Mono    ( 1085): Loading reference 2 of System.Runtime.Serialization.dll asmctx DEFAULT, looking for System.ServiceModel.Internals, Version=0.0.0.0, Culture=neutral, PublicKeyToken=abc123
09-30 14:49:52.920 D/Mono    ( 1085): Image addref System.ServiceModel.Internals[0x7937f9df00] (asmctx DEFAULT) -> System.ServiceModel.Internals.dll[0x7935889800]: 2
09-30 14:49:52.920 D/Mono    ( 1085): Prepared to set up assembly 'System.ServiceModel.Internals' (System.ServiceModel.Internals.dll)
09-30 14:49:52.920 D/Mono    ( 1085): Assembly System.ServiceModel.Internals[0x7937f9df00] added to domain RootDomain, ref_count=1
09-30 14:49:52.922 D/Mono    ( 1085): AOT: image 'System.ServiceModel.Internals.dll.so' not found: dlopen failed: library "System.ServiceModel.Internals.dll.so" not found
09-30 14:49:52.923 D/Mono    ( 1085): AOT: image '/Users/builder/jenkins/workspace/archive-mono/2019-06/android/release/sdks/out/android-arm64-v8a-release/lib/mono/aot-cache/arm64/System.ServiceModel.Internals.dll.so' not found: (null)
09-30 14:49:52.923 D/Mono    ( 1085): Config attempting to parse: 'System.ServiceModel.Internals.dll.config'.
09-30 14:49:52.923 D/Mono    ( 1085): Config attempting to parse: '/Users/builder/jenkins/workspace/archive-mono/2019-06/android/release/sdks/out/android-arm64-v8a-release/etc/mono/assemblies/System.ServiceModel.Internals/System.ServiceModel.Internals.config'.
09-30 14:49:52.923 D/Mono    ( 1085): Assembly Ref addref System.Runtime.Serialization[0x7935aa8d00] -> System.ServiceModel.Internals[0x7937f9df00]: 2
09-30 14:49:52.923 D/Mono    ( 1085): Loading reference 0 of System.ServiceModel.Internals.dll asmctx DEFAULT, looking for mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=abc123
09-30 14:49:52.923 D/Mono    ( 1085): Assembly Ref addref System.ServiceModel.Internals[0x7937f9df00] -> mscorlib[0x7a3039be80]: 64
09-30 14:49:52.923 D/Mono    ( 1085): Loading reference 2 of System.ServiceModel.Internals.dll asmctx DEFAULT, looking for System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=abc123
09-30 14:49:52.924 D/Mono    ( 1085): Assembly Ref addref System.ServiceModel.Internals[0x7937f9df00] -> System.Xml[0x799be73480]: 6
Loaded assembly: System.ServiceModel.Internals.dll [External]09-30 14:49:52.924 D/Mono    ( 1085): Loading reference 3 of System.Runtime.Serialization.dll asmctx DEFAULT, looking for System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=abc123

09-30 14:49:52.924 D/Mono    ( 1085): Assembly Ref addref System.Runtime.Serialization[0x7935aa8d00] -> System[0x799acd1580]: 10
09-30 14:49:52.998 D/Mono    ( 1085): Loading reference 1 of System.Xml.dll asmctx DEFAULT, looking for System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=abc123
09-30 14:49:52.999 D/Mono    ( 1085): Assembly Ref addref System.Xml[0x799be73480] -> System[0x799acd1580]: 11
09-30 14:49:53.099 D/Mono    ( 1085): Loading reference 1 of System.ServiceModel.Internals.dll asmctx DEFAULT, looking for System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=abc123
09-30 14:49:53.100 D/Mono    ( 1085): Assembly Ref addref System.ServiceModel.Internals[0x7937f9df00] -> System[0x799acd1580]: 12
09-30 14:49:53.145 D/Mono    ( 1085): Loading reference 19 of /storage/emulated/0/Android/data/com.companyname.agentconnectmobile/files/.__override__/Xamarin.Forms.Platform.Android.dll asmctx DEFAULT, looking for System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=abc123
09-30 14:49:53.146 D/Mono    ( 1085): Assembly Ref addref Xamarin.Forms.Platform.Android[0x799acc0e00] -> System.Xml[0x799be73480]: 7
09-30 14:49:53.221 D/Mono    ( 1085): DllImport searching in: 'libmono-native.so' ('./libmono-native.so').
09-30 14:49:53.221 D/Mono    ( 1085): Searching for 'SystemNative_Unlink'.
09-30 14:49:53.221 D/Mono    ( 1085): Probing 'SystemNative_Unlink'.
09-30 14:49:53.222 D/Mono    ( 1085): Found as 'SystemNative_Unlink'.
09-30 14:49:53.279 D/Mono    ( 1085): DllImport searching in: 'libmono-native.so' ('./libmono-native.so').
09-30 14:49:53.279 D/Mono    ( 1085): Searching for 'SystemNative_LStat2'.
09-30 14:49:53.279 D/Mono    ( 1085): Probing 'SystemNative_LStat2'.
09-30 14:49:53.279 D/Mono    ( 1085): Found as 'SystemNative_LStat2'.
09-30 14:49:53.279 D/Mono    ( 1085): DllImport searching in: 'libmono-native.so' ('./libmono-native.so').
09-30 14:49:53.279 D/Mono    ( 1085): Searching for 'SystemNative_Rename'.
09-30 14:49:53.279 D/Mono    ( 1085): Probing 'SystemNative_Rename'.
09-30 14:49:53.280 D/Mono    ( 1085): Found as 'SystemNative_Rename'.
09-30 14:49:53.553 D/Mono    ( 1085): DllImport searching in: 'libmono-native.so' ('./libmono-native.so').
09-30 14:49:53.553 D/Mono    ( 1085): Searching for 'SystemNative_Link'.
09-30 14:49:53.553 D/Mono    ( 1085): Probing 'SystemNative_Link'.
09-30 14:49:53.553 D/Mono    ( 1085): Found as 'SystemNative_Link'.
09-30 14:49:53.563 D/Mono    ( 1085): DllImport searching in: 'libmono-native.so' ('./libmono-native.so').
09-30 14:49:53.563 D/Mono    ( 1085): Searching for 'SystemNative_Stat2'.
09-30 14:49:53.563 D/Mono    ( 1085): Probing 'SystemNative_Stat2'.
09-30 14:49:53.563 D/Mono    ( 1085): Found as 'SystemNative_Stat2'.
09-30 14:49:53.564 D/Mono    ( 1085): DllImport searching in: 'libmono-native.so' ('./libmono-native.so').
09-30 14:49:53.564 D/Mono    ( 1085): Searching for 'SystemNative_Symlink'.
09-30 14:49:53.564 D/Mono    ( 1085): Probing 'SystemNative_Symlink'.
09-30 14:49:53.564 D/Mono    ( 1085): Found as 'SystemNative_Symlink'.
09-30 14:49:53.588 W/com.companyname.agentconnectmobile( 1085): type=1400 audit(0.0:4414): avc: denied { link } for comm=54687265616420506F6F6C20576F72 name="PropertyStore.forms.tmp" dev="dm-6" ino=77573 scontext=u:r:untrusted_app_27:s0:c6,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c6,c257,c512,c768 tclass=file permissive=0
09-30 14:49:53.597 D/Mono    ( 1085): DllImport searching in: 'libmono-native.so' ('./libmono-native.so').
09-30 14:49:53.598 D/Mono    ( 1085): Searching for 'SystemNative_CopyFile'.
09-30 14:49:53.598 D/Mono    ( 1085): Probing 'SystemNative_CopyFile'.
09-30 14:49:53.598 D/Mono    ( 1085): Found as 'SystemNative_CopyFile'.
**System.NullReferenceException:** 'Object reference not set to an instance of an object.'

This is my first Xamarin application so I'm not sure if I am supposed to be handling exit on Android somehow? I haven't seen this issue on iOS.

Binding iOS protocol

$
0
0

Hi,

one should think that I understood Bindings by now, but whenever it comes to iOS I face new adventures.

I created an objective-c framework that contains just one single class which has a header and main file.
This file defines a protocol in its header.

#import <Foundation/Foundation.h>
@protocol MyDelegate <NSObject>
    @required
    -(void) method1:(NSInteger *)value;
    -(void) method2:(NSString*) value;
    -(void) method3:(NSString*) value;
@end
@interface MyClass : NSObject
    +(void)addDelegate:(id <MyDelegate>)delegate;
@end

Then I want to only bind the delegate, I don't care for the MyClass (for the moment).
So what I defined is

[Protocol, Model]
[BaseType(typeof(NSObject))]
interface MyDelegate
{
    [Abstract]
    [Export("method1:")]
    public void Method1(int value);

    [Abstract]
    [Export("method2:")]
    public void  Method(string value);

    [Abstract]
    [Export("method3:")]
    public void Method3(string value);
}

If I build the binding project all is fine. If I build the iOS project that integrates the binding, all is fine.
However the MyDelegate class simply doesn't appear in the iOS project. It is not existent.

If I remove the [Protocol,Model] from the top of the definition I get an error telling me the class MyDelegate couldn't be found.
But I can confirm 100% that the framework contains the corresponding header file.

What am I doing wrong here?

Thank you!

'Could not AOT the assembly '...'' build error in iOS version of Xamarin forms app

$
0
0

When trying to build a Xamarin forms application with as device 'iPhone', the following error comes up:
"/Users/{UserBuildHost}/Desktop/{AppName}/{AppName}/{AppName}/{AppName}.iOS/MTOUCH: Error MT3001: Could not AOT the assembly '/Users/{UserBuildHost}/Desktop/{AppName}/{AppName}/{AppName}/{AppName}.iOS/C:/Projects/MyApp/mtouch-cache/3-Build/{AppName}.iOS.exe' (MT3001) ({AppName}.iOS)"
I really don't know what the problem could be. Maybe something with the colon in the MONO_PATH (see output.txt)?
The error is thrown in release mode, when using 'iPhone' as device. Using debug throws the error "'ReadItemsFromFile' task failed unexpectedly". I can make a seperate thread about that error if necessary.

I included the full, diagnostic build-log (output.txt) and the list of installed nuget packages (nuget.txt).
Any help on how to fix this would be greatly appreciated.

Zebra Scanner SDK for iOS

$
0
0

Hi,

I am creating a binding project for Zebra Scanner SDK. The binding project compiles with no error but when I create an instance of it in my project, it's null. Any idea why??????????????

Here is the SDK Help link.
https://atgsupportcentral.motorolasolutions.com/content/emb/docs/manuals/MN001834A01a.pdf

Here is the code

SbtSdkFactory.h

#import <Foundation/Foundation.h>
#import "ISbtSdkApi.h"

@interface SbtSdkFactory : NSObject

+(id<ISbtSdkApi>)createSbtSdkApiInstance;

@end

ApiDefinition.cs

    [BaseType (typeof(NSObject))]
    interface SbtSdkFactory
    {
        // +(id<ISbtSdkApi>)createSbtSdkApiInstance;
        [Static]
        [Export ("createSbtSdkApiInstance")]
        [Abstract]
        ISbtSdkApi CreateSbtSdkApiInstance { get; }
        //ISbtSdkApi CreateSbtSdkApiInstance();
    }

Usage

var myApi = SbtSdkFactory.CreateSbtSdkApiInstance;

The problem is myApi is null after running above code. Any idea where the problem is?

Automatically increase the build number in xamarin forms app

$
0
0

Any one know how to automatically increase the build number in Android and IOS projects (whenever i do the release build)?

Note:
I am developing Xamarin forms app .

Regards
Thabo

Writing to NFC Tags(iOS 13 beta)

$
0
0

As you guys probably know by now iOS 13 has added writing to nfc. I am currently trying to added this functionality the nfc sample app for ios. I have been searching around in the documentation and I found that the write feature was added to the INFCNdefTag interface. The problem is that I am unsure on how to use this interface in my code. This requires me to have a nfc tag when I scan one, but the way the nfcndefreadersession works we are give NDEFmessages instead tags when a tag is scanned. I was wondering if someone can point in a direction where/how I can use INFCNdeftag interface. I have looked at the apple example app they have which has writing implemented, but for some reason that doesn't work. For swift they have a diddetect() for tags and NdefMessage, but in the Xamarin.ios Core NFC there is only a diddetect() for ndefmessages.


How to Track Screen View for Xaml pages of Xamarin Forms using Google Firebase

$
0
0

Hello,

I am developing xamarin forms application and I want to track screen views for xaml pages in Xamarin Forms.
Is there any implementation for this?

How do I use the WriteNdef method in iOS 13 to write to an NFC tag?

$
0
0

I have implemented the DidDetectTags method as follows

public void DidDetectTags(NFCNdefReaderSession session, INFCNdefTag nFCNdefTag) { session.ConnectToTag(nFCNdefTag, null); NFCNdefPayload payload = NFCNdefPayload.CreateWellKnownTypePayload("hello world", NSLocale.CurrentLocale); NFCNdefMessage nFCNdefMessage = new NFCNdefMessage(new NFCNdefPayload[] { payload }); nFCNdefTag.WriteNdef(nFCNdefMessage, delegate { //write successful }); }

However, DidDetectTags(NFCNdefReaderSession session, INFCNdefTag[] tags) is an optional method of INFCNdefReaderSessionDelegate interface and it is not getting hit after scanning the tag.
Only the DidDetect(NFCNdefReaderSession session, NFCNdefMessage[] messages) method is getting hit.
How do I get the INFCNdefTag tag object and use the WriteNdef method?

Does Xamarin OOUI implement a file and image picker.

$
0
0

Hello friends, I discovered Xamarin OOUI not too long and fell in love with it because I don't really enjoy working with javascript and html. For me, XAML has been excellent choice for building UI. But it seems Xamarin OOUI project has not made much progress since the last updates. Does anyone know if it has some components for Image/file picker. Or is there any other comprehensive platform for building web apps using XAML and C#. Thanks in advance.

Impossible to create APK

$
0
0

I'm trying to create an Archive APK for my application which works perfectly in Android emulator and compile without problems.
After a few seconds of work I get the message:
Archive process doesn't work. For details check Errors section.
But in Error section I just find this message:
It was not possible to create archive app 'Timesheet'. Android archive not valid (no file APK)

Does anybody know how to solve this situation?
It's a project I was working on before summer and I could create my archive then, but now it's not working and I really don't know what changed in the while.

Thanks
Michele

Change BackgroundColor/Icon from SplashScreen when in dark mode?

$
0
0

Hi guys,

Im just working on a dark mode for our apps. We are using LaunchScreen.storyboard for displaying a logo on a white background. If we are in dark mode I would like to change BackgroundColor to dark gray and a different logo, is that possible?

Thank you and best regards
Chris

Xcode 11 and upload IPA file without Application Loader

$
0
0

How to upload IPA file (Xamarin.iOS app) to AppStore without Application Loader, that is removed from Xcode 11? I'm using Visual Studio 2019 for Mac.
Is it possible download Application Loader utility manually?

iOS App crashes with 404 on API call only in debug mode. Doesn't crash when not debugging.

$
0
0

In shared code I have api called by both Android and iOS. This is an api call to get a SendBird user from sendbird's api. The application makes plenty of api calls to my server and other apis prior to making this call. Android will make this call fine both in debug and not debug mode.

When launching iOS without debugging it makes the call and gets the data it needs and continues with the program perfectly.
When launching iOS with debugging the program crashes, it stops on Main.cs (very annoying that it doesn't stop at the specific point, had to use trial an error to discover where it was failing). Exception Thrown System.Net.WebException: 'The remote server returned an error: (404) Not Found.'

I've tried multiple iOS devices, they all do this. They all work when running normally. I've searched online with no luck. I'm banging my head against the wall at this point. It severely slows down development and makes debugging impossible. Any help or insights on this would be greatly appreciated.

I haven't worked on this project since I was working with vs 2017 and on win 7. I'm now using win 10 and 2019. Both the mac server and the windows machine have completely updated Xamarin. This issue didn't exist when I was on 2017.

I'm not sure if this is a Xamarin Issue or an issue with the api itself. Since the api works when not debugging, and on droid, I'm leaning towards it being a Xamarin issue.


What is the best way to implement expanding UICollectionView(Cards)?

$
0
0

This is what I'm trying to accomplish.

The highlighted one is the card and the one not highlighted is my view that will expand / show when I tapped the card. What is the best way to implement this? Because I had a roadblock on this one. Thank you in advance.

This is the card for reference. When I tapped on this card, the view will expand shown as the image above

Trying to communicate with FTDI ft230X usb to serial device with android tablet as a usb host.

$
0
0

I cannot seem to get serial communications to work with FT230XQ. however I can see the device in the device list, and its product id and vendor id are correct.

   IDictionary<string, UsbDevice> ubDeviceList = m_usbManager.DeviceList;

   foreach (UsbDevice tempDev in ubDeviceList.Values)
   {
       if (true == tempDev.ManufacturerName.Equals("FTDI"))
       {
           MonToasts(string.Format("FTDI Found: {0}, {1}",
                             tempDev.ProductId, tempDev.VendorId));

            m_usbFTDISerialDevice = tempDev;
            if (true)//(!_receivedUsbPermissionResponse && !m_usbManager.HasPermission(m_usbDevice))
            {

                 m_usbManager.RequestPermission(tempDev, _pendingUsbPermissionIntent);

                 m_stUSBTIMSerial = USB_FTDI_SERIAL_STATE.ST_USB_WAIT_FOR_PERMISSION;
            }

            break;
      }
  }

The dialog pops up on android tablet to give app rights to use usb to serial device.

Next I setup the baud rate selected in this example 9600 is used but I try multiple bauds and none work.

                        _usbFTDIConnection = m_usbManager.OpenDevice(m_usbFTDISerialDevice);

                        if (false == _usbFTDIConnection.ClaimInterface(m_usbFTDISerialDevice.GetInterface(0), true))
                        {
                            throw new Exception("Unable to claim control interface.");
                        }

                        int result = _usbFTDIConnection.ControlTransfer((UsbAddressing)64, 0, 0, 0, null, 0, 5000);// reset  
                        System.Threading.Thread.Sleep(1000);
                        if (result == 0)
                        {
                            result = _usbFTDIConnection.ControlTransfer((UsbAddressing)64, 0, 1, 0, null, 0, 5000);// clear Rx
                        }

                        if (result == 0)
                        {
                            result = _usbFTDIConnection.ControlTransfer((UsbAddressing) 64, 0, 2, 0, null, 0, 5000); // clear Tx
                        }

                        if (result == 0)
                        {
                            result = _usbFTDIConnection.ControlTransfer((UsbAddressing) 64, 3, 16696, 0, null, 0,5000); // baudrate  57600 115200-0x001A-26, 9600-0x4138-16696, 19200-0x809C-32924, 230040-0x000D-13
                        }

                        if (result == 0)
                        {
                            result = _usbFTDIConnection.ControlTransfer((UsbAddressing) 64, 2, 0, 0, null, 0,5000); // flow  control none                                                            
                        }

                        if (result == 0)
                        {
                            result = _usbFTDIConnection.ControlTransfer((UsbAddressing) 64, 4, 8, 0, null, 0,5000); // data bit  8, parity  none,  stop bit 1, tx off
                        }

So far so good. Next I try to use bulk pipe to read and write to data endpoint. in this example I am looping back everything I
receive. The only thing is that the BulkTransfer for the read of serial device always times out and returns -1.

                        int iReadCount = 0;
                        try
                        {
                            iReadCount = _usbConnection.BulkTransfer(m_usbFTDISerialDevice.GetInterface(0).GetEndpoint(0), 
                                m_bFTDIBuffer,
                                m_bFTDIBuffer.Length, 
                                5000);

                        }
                        catch
                        {

                        }

                        if (iReadCount > 0)
                        {
                            MonToasts("LoopBack recevied data: " + iReadCount); 

                            _usbConnection.BulkTransfer(m_usbFTDISerialDevice.GetInterface(0).GetEndpoint(1), 
                            m_bFTDIBuffer,
                            iReadCount, 
                            1000);

                        }

any ideas what I might be missing.

Xamarin android nuget package not working

$
0
0

Hi Folks

I could not do anything for xamarin android nuget package.
All actions are generate this message:

"Unable to get repository signature information for source //api.nuget.org/v3-index/repository-signatures/5.0.0/index.json."

Any Idea?

iOS 9.3.x fails at startup with VS Xamarin Forms 8.3.1

$
0
0

iOS 10.0 and above all work like before, but with the latest Xamarin Forms update I get at startup:

2019.10.01-13.01.44.790 (1) at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) <0xe1d70 + 0x0008c> in <e9fc9f9aa3924b8ab178e9f9b7538a42#f5fca6ff644d4563e93b7f9f2a3883ef>:0
at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x2f0185 + 0x0008c> in <e9fc9f9aa3924b8ab178e9f9b7538a42#f5fca6ff644d4563e93b7f9f2a3883ef>:0
at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x2f0293 + 0x00016> in <e9fc9f9aa3924b8ab178e9f9b7538a42#f5fca6ff644d4563e93b7f9f2a3883ef>:0
at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) <0x2e573f + 0x00018> in <e9fc9f9aa3924b8ab178e9f9b7538a42#f5fca6ff644d4563e93b7f9f2a3883ef>:0
at ObjCRuntime.Runtime.ConstructNSObject[T] (System.IntPtr ptr, System.Type type, ObjCRuntime.Runtime+MissingCtorResolution missingCtorResolution) <0xcd477f + 0x00094> in <1b20576ce73640d782f136af13e79af3#f5fca6ff644d4563e93b7f9f2a3883ef>:0
at ObjCRuntime.Runtime.GetNSObject[T] (System.IntPtr ptr) <0xcd5021 + 0x00152> in <1b20576ce73640d782f136af13e79af3#f5fca6ff644d4563e93b7f9f2a3883ef>:0
at UIKit.UIKeyCommand.Create (Foundation.NSString keyCommandInput, UIKit.UIKeyModifierFlags modifierFlags, ObjCRuntime.Selector action) <0xd06c33 + 0x0006c> in <1b20576ce73640d782f136af13e79af3#f5fca6ff644d4563e93b7f9f2a3883ef>:0
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement]..ctor () <0xe9ddcf + 0x000cc> in <732a941d6de945589075e4414a7b1b52#f5fca6ff644d4563e93b7f9f2a3883ef>:0
at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) <0xe992bd + 0x0004c> in <732a941d6de945589075e4414a7b1b52#f5fca6ff644d4563e93b7f9f2a3883ef>:0
at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) <0xe9d62b + 0x00088> in <732a941d6de945589075e4414a7b1b52#f5fca6ff644d4563e93b7f9f2a3883ef>:0
at Xamarin.Forms.Platform.iOS.VisualElementPackager.Load () <0xe9d389 + 0x0007c> in <732a941d6de945589075e4414a7b1b52#f5fca6ff644d4563e93b7f9f2a3883ef>:0
at Xamarin.Forms.Platform.iOS.PageRenderer.ViewDidLoad () <0xebb34d + 0x001a2> in <732a941d6de945589075e4414a7b1b52#f5fca6ff644d4563e93b7f9f2a3883ef>:0
at (wrapper managed-to-native) ObjCRuntime.Messaging.objc_msgSendSuper(intptr,intptr)
at UIKit.UIViewController.get_View () <0xd01407 + 0x00038> in <1b20576ce73640d782f136af13e79af3#f5fca6ff644d4563e93b7f9f2a3883ef>:0
at Xamarin.Forms.Platform.iOS.PageRenderer.SetElement (Xamarin.Forms.VisualElement element) <0xebae57 + 0x0008a> in <732a941d6de945589075e4414a7b1b52#f5fca6ff644d4563e93b7f9f2a3883ef>:0
at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) <0xe992bd + 0x00062> in <732a941d6de945589075e4414a7b1b52#f5fca6ff644d4563e93b7f9f2a3883ef>:0
at Xamarin.Forms.Platform.iOS.Platform.AddChild (Xamarin.Forms.VisualElement view) <0xe99697 + 0x0008c> in <732a941d6de945589075e4414a7b1b52#f5fca6ff644d4563e93b7f9f2a3883ef>:0
at Xamarin.Forms.Platform.iOS.Platform.WillAppear () <0xe995e3 + 0x00068> in <732a941d6de945589075e4414a7b1b52#f5fca6ff644d4563e93b7f9f2a3883ef>:0
at Xamarin.Forms.Platform.iOS.PlatformRenderer.ViewWillAppear (System.Boolean animated) <0xe9b89b + 0x00028> in <732a941d6de945589075e4414a7b1b52#f5fca6ff644d4563e93b7f9f2a3883ef>:0
at (wrapper managed-to-native) ObjCRuntime.Messaging.objc_msgSend(intptr,intptr)
at UIKit.UIWindow.MakeKeyAndVisible () <0xd0194b + 0x00032> in <1b20576ce73640d782f136af13e79af3#f5fca6ff644d4563e93b7f9f2a3883ef>:0

Any ideas?

Xamarin Forms - Android 8.0

$
0
0

Just had to upgrade an older Xamarin Forms app to support Firebase messaging. In that process i needed to update some libraries

i ended up updating Xam Forms and didnt realize it was for 8.1 and 8.1 is not available on some phones that are still in use for that app (Samsung S7 for ex)

is there any way to use Xamarin Forms with Android 8.0 instead of 8.1?

thanks

Viewing all 204402 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>