Forum Discussion
Adaptive Card not sending data on iOS Teams app
- Christian WallingMar 15, 2022Copper Contributor
I attached the json for the Adaptive Card and hope that this is the manifest you're looking for.
- Sayali-MSFTMar 15, 2022
Microsoft
Christian Walling-We are unable to repro the scenario. It's working fine for us. Could you please update the IOS version if not updated then check it once?
Version: 4.4.0
Build: 4.4.77.2022042801/0307 (general)
Release Branch: 2022Feb-T2
IOS Version -15.3
Reference sample:-Microsoft-Teams-Samples/samples/bot-sequential-flow-adaptive-cards/csharp/SequentialUserSpecificFlow at main · OfficeDev/Microsoft-Teams-Samples (github.com)- Christian WallingMar 15, 2022Copper Contributor
I'm on iOS 15.3.1
protected override async Task<InvokeResponse> OnInvokeActivityAsync(ITurnContext<IInvokeActivity> turnContext, CancellationToken cancellationToken) { if (turnContext.Activity.Name == "adaptiveCard/action") { await turnContext.SendActivityAsync(new Activity { Type = ActivityTypes.Typing }, cancellationToken); ChatActivities chat = new ChatActivities(this._appId, this._appPassword); KeyVaultHelper keyVault = new KeyVaultHelper(); TableStorageHelper table = new TableStorageHelper(keyVault, turnContext.Activity.Conversation.TenantId); dynamic request = turnContext.Activity.Value; string comment = (request.action.data.InputComment == null) ? "" : request.action.data.InputComment;
The last line (12) is the one where it crashes because request.action.data is null. (Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform runtime binding on a null reference). It is always null when sent from the iOS app, if I type in a comment or leave the field empty. It's also independent of the action button I'm using.
- Sayali-MSFTMar 15, 2022
Microsoft
Christian Walling- We are checking it from our end and let you know.