You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 23, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 23, 2024. It is now read-only.
Ive managed to get it working by altering NfcInFlutterPlugin.m
altering the if statement at line 391 to the following:
if ([@"T" isEqualToString:recordType]) {
payloadData = [[NSString stringWithFormat:@"%c%@%@", recordLanguageCode.length, recordLanguageCode, recordPayload] dataUsingEncoding:NSUTF8StringEncoding];
tnfValue = NFCTypeNameFormatNFCWellKnown;
}
it seems that the "wellKnownTypeTextPayloadWithString" function call in the original code always returned the record as utf16
Activity
arrutherford commentedon Feb 17, 2021
Ive managed to get it working by altering NfcInFlutterPlugin.m
altering the if statement at line 391 to the following:
if ([@"T" isEqualToString:recordType]) {
payloadData = [[NSString stringWithFormat:@"%c%@%@", recordLanguageCode.length, recordLanguageCode, recordPayload] dataUsingEncoding:NSUTF8StringEncoding];
tnfValue = NFCTypeNameFormatNFCWellKnown;
}
it seems that the "wellKnownTypeTextPayloadWithString" function call in the original code always returned the record as utf16
Merge pull request semlette#76 from BrayFlex/master