googleads-mobile-flutter: type 'Null' is not a subtype of type 'String' when errors happens
Plugin Version
google_mobile_ads: ^2.1.0
Steps to Reproduce
the error happens when we try to load InterstitialAd I get also the same error from firebase crashlytics also if i using a test id the error does not happens
I think this error related to Frequency capping as i test it with a fresh install and ad id with 1 ad limit each 5min and it load the first time correctly but the second time the error happens and I test with other id that does not have a limit but with the app has limit of 4 ads show each 30 min and only first four ads loaded correctly
reproduction code:
import 'package:flutter/material.dart';
import 'package:google_mobile_ads/google_mobile_ads.dart';
import 'package:learn/service/ads/ads_config.dart';
void main(List<String> args) async {
WidgetsFlutterBinding.ensureInitialized();
await MobileAds.instance.initialize();
runApp(const MyWidget());
}
class MyWidget extends StatelessWidget {
const MyWidget({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
floatingActionButton: FloatingActionButton(onPressed: () {
run(context);
}),
),
);
}
}
InterstitialAd? _ad;
Future<void> run(BuildContext context) async {
if (_ad != null) {
_ad!.show();
return;
}
InterstitialAd.load(
adUnitId: adConfig.selectPageAds,
request: const AdRequest(),
adLoadCallback: InterstitialAdLoadCallback(
onAdFailedToLoad: (_) {
print("onAdFailedToLoad $_");
},
onAdLoaded: (ad) {
_ad = ad;
print("onAdLoaded");
ad.fullScreenContentCallback = FullScreenContentCallback(
onAdDismissedFullScreenContent: (InterstitialAd ad) {
print(" onAdDismissedFullScreenContent");
ad.dispose();
_ad = null;
},
onAdFailedToShowFullScreenContent:
(InterstitialAd ad, AdError error) {
print("onAdFailedToShowFullScreenContent $error");
},
);
},
));
}
════════ Exception caught by services library ══════════════════════════════════
The following _TypeError was thrown during a platform message callback:
type 'Null' is not a subtype of type 'String'
When the exception was thrown, this was the stack
#0 AdMessageCodec.readValueOfType
package:google_mobile_ads/src/ad_instance_manager.dart:1007
#1 AdMessageCodec.readValueOfType
package:google_mobile_ads/src/ad_instance_manager.dart:1003
#2 AdMessageCodec.readValueOfType
package:google_mobile_ads/src/ad_instance_manager.dart:1022
#3 StandardMessageCodec.readValue
package:flutter/…/services/message_codecs.dart:479
#4 StandardMessageCodec.readValueOfType
package:flutter/…/services/message_codecs.dart:531
#5 AdMessageCodec.readValueOfType
package:google_mobile_ads/src/ad_instance_manager.dart:1108
#6 StandardMessageCodec.readValue
package:flutter/…/services/message_codecs.dart:479
#7 StandardMethodCodec.decodeMethodCall
package:flutter/…/services/message_codecs.dart:612
#8 MethodChannel._handleAsMethodCall
package:flutter/…/services/platform_channel.dart:534
#9 MethodChannel.setMethodCallHandler.<anonymous closure>
package:flutter/…/services/platform_channel.dart:529
#10 _DefaultBinaryMessenger.setMessageHandler.<anonymous closure>
package:flutter/…/services/binding.dart:387
#11 _invoke2 (dart:ui/hooks.dart:186:13)
#12 _ChannelCallbackRecord.invoke (dart:ui/channel_buffers.dart:42:5)
#13 _Channel.push (dart:ui/channel_buffers.dart:132:31)
#14 ChannelBuffers.push (dart:ui/channel_buffers.dart:329:17)
#15 PlatformDispatcher._dispatchPlatformMessage (dart:ui/platform_dispatcher.dart:599:22)
#16 _dispatchPlatformMessage (dart:ui/hooks.dart:89:31)
════════════════════════════════════════════════════════════════════════════════
simple
Logs
export
_WRAPPER_CONTENTS_DIR_SHALLOW_BUNDLE_NO\=/Contents
export _WRAPPER_PARENT_PATH_SHALLOW_BUNDLE_NO\=/..
export
_WRAPPER_RESOURCES_DIR_SHALLOW_BUNDLE_NO\=/Resources
export __CODE_SIGNING_ALLOWED_appletvos\=NO
export __CODE_SIGNING_ALLOWED_iphoneos\=NO
export __CODE_SIGNING_ALLOWED_watchos\=NO
export arch\=undefined_arch
export variant\=normal
/bin/sh -c
/Users/mac/Library/Developer/Xcode/DerivedData/Runner-c
yduztddlurpslhewwxebdywdpez/Build/Intermediates.noindex
/Runner.build/Debug-iphonesimulator/Runner.build/Script
-F77E77C7B037882F5045028C.sh
Running upload-symbols in Build Phase mode
Validating build environment for Crashlytics...
Processing dSYMs...
Successfully submitted symbols for architecture arm64 with
UUID 26b5c54c3ba239aea06af40b0a9deb14 in dSYM:
/Users/mac/Desktop/sjaj/learn/build/ios/Debug-iphonesimulat
or/Runner.app.dSYM
Successfully uploaded Crashlytics build event and symbols
ProcessInfoPlistFile
/Users/mac/Desktop/sjaj/learn/build/ios/Debug-iphonesimulat
or/Runner.app/Info.plist
/Users/mac/Desktop/sjaj/learn/ios/Runner/Info.plist (in
target 'Runner' from project 'Runner')
cd /Users/mac/Desktop/sjaj/learn/ios
builtin-infoPlistUtility
/Users/mac/Desktop/sjaj/learn/ios/Runner/Info.plist
-producttype com.apple.product-type.application
-genpkginfo
/Users/mac/Desktop/sjaj/learn/build/ios/Debug-iphonesim
ulator/Runner.app/PkgInfo -expandbuildsettings -format
binary -platform iphonesimulator -additionalcontentfile
/Users/mac/Library/Developer/Xcode/DerivedData/Runner-c
yduztddlurpslhewwxebdywdpez/Build/Intermediates.noindex
/Runner.build/Debug-iphonesimulator/Runner.build/Base.l
proj/LaunchScreen-SBPartialInfo.plist
-additionalcontentfile
/Users/mac/Library/Developer/Xcode/DerivedData/Runner-c
yduztddlurpslhewwxebdywdpez/Build/Intermediates.noindex
/Runner.build/Debug-iphonesimulator/Runner.build/Base.l
proj/Main-SBPartialInfo.plist -additionalcontentfile
/Users/mac/Library/Developer/Xcode/DerivedData/Runner-c
yduztddlurpslhewwxebdywdpez/Build/Intermediates.noindex
/Runner.build/Debug-iphonesimulator/Runner.build/assetc
atalog_generated_info.plist -o
/Users/mac/Desktop/sjaj/learn/build/ios/Debug-iphonesim
ulator/Runner.app/Info.plist
CopySwiftLibs
/Users/mac/Desktop/sjaj/learn/build/ios/Debug-iphonesimulat
or/Runner.app (in target 'Runner' from project 'Runner')
cd /Users/mac/Desktop/sjaj/learn/ios
export
CODESIGN_ALLOCATE\=/Applications/Xcode.app/Contents/Dev
eloper/Toolchains/XcodeDefault.xctoolchain/usr/bin/code
sign_allocate
export
DEVELOPER_DIR\=/Applications/Xcode.app/Contents/Develop
er
export
SDKROOT\=/Applications/Xcode.app/Contents/Developer/Pla
tforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSi
mulator15.5.sdk
builtin-swiftStdLibTool --copy --verbose --sign -
--scan-executable
/Users/mac/Desktop/sjaj/learn/build/ios/Debug-iphonesim
ulator/Runner.app/Runner --scan-folder
/Users/mac/Desktop/sjaj/learn/build/ios/Debug-iphonesim
ulator/Runner.app/Frameworks --scan-folder
/Users/mac/Desktop/sjaj/learn/build/ios/Debug-iphonesim
ulator/Runner.app/PlugIns --scan-folder
/Users/mac/Desktop/sjaj/learn/build/ios/Debug-iphonesim
ulator/Runner.app/SystemExtensions --scan-folder
/Users/mac/Desktop/sjaj/learn/build/ios/Debug-iphonesim
ulator/Pods_Runner.framework --platform iphonesimulator
--toolchain
/Applications/Xcode.app/Contents/Developer/Toolchains/X
codeDefault.xctoolchain --destination
/Users/mac/Desktop/sjaj/learn/build/ios/Debug-iphonesim
ulator/Runner.app/Frameworks --strip-bitcode
--strip-bitcode-tool
/Applications/Xcode.app/Contents/Developer/Toolchains/X
codeDefault.xctoolchain/usr/bin/bitcode_strip
--emit-dependency-info
/Users/mac/Library/Developer/Xcode/DerivedData/Runner-c
yduztddlurpslhewwxebdywdpez/Build/Intermediates.noindex
/Runner.build/Debug-iphonesimulator/Runner.build/SwiftS
tdLibToolInputDependencies.dep --filter-for-swift-os
CodeSign
/Users/mac/Desktop/sjaj/learn/build/ios/Debug-iphonesimulat
or/Runner.app (in target 'Runner' from project 'Runner')
cd /Users/mac/Desktop/sjaj/learn/ios
export
CODESIGN_ALLOCATE\=/Applications/Xcode.app/Contents/Dev
eloper/Toolchains/XcodeDefault.xctoolchain/usr/bin/code
sign_allocate
Signing Identity: "-"
/usr/bin/codesign --force --sign - --entitlements
/Users/mac/Library/Developer/Xcode/DerivedData/Runner-c
yduztddlurpslhewwxebdywdpez/Build/Intermediates.noindex
/Runner.build/Debug-iphonesimulator/Runner.build/Runner
.app.xcent --timestamp\=none --generate-entitlement-der
/Users/mac/Desktop/sjaj/learn/build/ios/Debug-iphonesim
ulator/Runner.app
Result bundle written to path:
/var/folders/yv/3w2_jdbd573867wwh99hn3hc0000gn/T/flutter_t
ools.PsiceC/flutter_ios_build_temp_dirzHIYhc/temporary_xcr
esult_bundle
** BUILD SUCCEEDED **
2022-10-21 23:47:18.344 xcodebuild[23908:163760] Requested
but did not find extension point with identifier
Xcode.IDEKit.ExtensionSentinelHostApplications for
extension
Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of
plug-in com.apple.dt.IDEWatchSupportCore
2022-10-21 23:47:18.344 xcodebuild[23908:163760] Requested
but did not find extension point with identifier
Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for
extension
Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.
watchOS of plug-in com.apple.dt.IDEWatchSupportCore
[ +60 ms] └─Compiling, linking and signing... (completed in 8.8s)
[ ] Xcode build done. 14.5s
[ +1 ms] executing: /usr/bin/arch -arm64e xcrun xcresulttool get --path
/var/folders/yv/3w2_jdbd573867wwh99hn3hc0000gn/T/flutter_tools.PsiceC/flutter_i
os_build_temp_dirzHIYhc/temporary_xcresult_bundle --format json
[ +38 ms] {
"_type" : {
"_name" : "ActionsInvocationRecord"
},
"actions" : {
"_type" : {
"_name" : "Array"
},
"_values" : [
{
"_type" : {
"_name" : "ActionRecord"
},
"actionResult" : {
"_type" : {
"_name" : "ActionResult"
},
"coverage" : {
"_type" : {
"_name" : "CodeCoverageInfo"
}
},
"issues" : {
"_type" : {
"_name" : "ResultIssueSummaries"
}
},
"metrics" : {
"_type" : {
"_name" : "ResultMetrics"
}
},
"resultName" : {
"_type" : {
"_name" : "String"
},
"_value" : "action"
},
"status" : {
"_type" : {
"_name" : "String"
},
"_value" : "notRequested"
}
},
"buildResult" : {
"_type" : {
"_name" : "ActionResult"
},
"coverage" : {
"_type" : {
"_name" : "CodeCoverageInfo"
}
},
"issues" : {
"_type" : {
"_name" : "ResultIssueSummaries"
}
},
"logRef" : {
"_type" : {
"_name" : "Reference"
},
"id" : {
"_type" : {
"_name" : "String"
},
"_value" :
"0~PbEethKbOccTIgBFisoK1t3vn8go4CGmUiKtGx-foQvcGWCAvVk
tT2-5V6zFiMt2sCPFLGVpJUqTaSj6rZLevQ=="
},
"targetType" : {
"_type" : {
"_name" : "TypeDefinition"
},
"name" : {
"_type" : {
"_name" : "String"
},
"_value" : "ActivityLogSection"
}
}
},
"metrics" : {
"_type" : {
"_name" : "ResultMetrics"
}
},
"resultName" : {
"_type" : {
"_name" : "String"
},
"_value" : "build"
},
"status" : {
"_type" : {
"_name" : "String"
},
"_value" : "succeeded"
}
},
"endedTime" : {
"_type" : {
"_name" : "Date"
},
"_value" : "2022-10-21T23:47:32.482+0300"
},
"runDestination" : {
"_type" : {
"_name" : "ActionRunDestinationRecord"
},
"displayName" : {
"_type" : {
"_name" : "String"
},
"_value" : "iPhone SE (3rd generation)"
},
"localComputerRecord" : {
"_type" : {
"_name" : "ActionDeviceRecord"
},
"busSpeedInMHz" : {
"_type" : {
"_name" : "Int"
},
"_value" : "0"
},
"cpuCount" : {
"_type" : {
"_name" : "Int"
},
"_value" : "1"
},
"cpuKind" : {
"_type" : {
"_name" : "String"
},
"_value" : "Apple M1"
},
"cpuSpeedInMHz" : {
"_type" : {
"_name" : "Int"
},
"_value" : "0"
},
"identifier" : {
"_type" : {
"_name" : "String"
},
"_value" : "00008103-001A35010AE2001E"
},
"isConcreteDevice" : {
"_type" : {
"_name" : "Bool"
},
"_value" : "true"
},
"logicalCPUCoresPerPackage" : {
"_type" : {
"_name" : "Int"
},
"_value" : "8"
},
"modelCode" : {
"_type" : {
"_name" : "String"
},
"_value" : "MacBookAir10,1"
},
"modelName" : {
"_type" : {
"_name" : "String"
},
"_value" : "MacBook Air"
},
"modelUTI" : {
"_type" : {
"_name" : "String"
},
"_value" : "com.apple.macbookair-late-2020"
},
"name" : {
"_type" : {
"_name" : "String"
},
"_value" : "My Mac"
},
"nativeArchitecture" : {
"_type" : {
"_name" : "String"
},
"_value" : "arm64e"
},
"operatingSystemVersion" : {
"_type" : {
"_name" : "String"
},
"_value" : "12.6"
},
"operatingSystemVersionWithBuildNumber" : {
"_type" : {
"_name" : "String"
},
"_value" : "12.6 (21G115)"
},
"physicalCPUCoresPerPackage" : {
"_type" : {
"_name" : "Int"
},
"_value" : "8"
},
"platformRecord" : {
"_type" : {
"_name" : "ActionPlatformRecord"
},
"identifier" : {
"_type" : {
"_name" : "String"
},
"_value" : "com.apple.platform.macosx"
},
"userDescription" : {
"_type" : {
"_name" : "String"
},
"_value" : "macOS"
}
},
"ramSizeInMegabytes" : {
"_type" : {
"_name" : "Int"
},
"_value" : "8192"
}
},
"targetArchitecture" : {
"_type" : {
"_name" : "String"
},
"_value" : "arm64"
},
"targetDeviceRecord" : {
"_type" : {
"_name" : "ActionDeviceRecord"
},
"busSpeedInMHz" : {
"_type" : {
"_name" : "Int"
},
"_value" : "0"
},
"cpuCount" : {
"_type" : {
"_name" : "Int"
},
"_value" : "0"
},
"cpuSpeedInMHz" : {
"_type" : {
"_name" : "Int"
},
"_value" : "0"
},
"identifier" : {
"_type" : {
"_name" : "String"
},
"_value" : "00FC91D9-6167-483B-B972-662C56BA898A"
},
"isConcreteDevice" : {
"_type" : {
"_name" : "Bool"
},
"_value" : "true"
},
"logicalCPUCoresPerPackage" : {
"_type" : {
"_name" : "Int"
},
"_value" : "0"
},
"modelCode" : {
"_type" : {
"_name" : "String"
},
"_value" : "iPhone14,6"
},
"modelName" : {
"_type" : {
"_name" : "String"
},
"_value" : "iPhone SE (3rd generation)"
},
"modelUTI" : {
"_type" : {
"_name" : "String"
},
"_value" : "com.apple.iphone-se3-1"
},
"name" : {
"_type" : {
"_name" : "String"
},
"_value" : "iPhone SE (3rd generation)"
},
"nativeArchitecture" : {
"_type" : {
"_name" : "String"
},
"_value" : "arm64"
},
"operatingSystemVersion" : {
"_type" : {
"_name" : "String"
},
"_value" : "15.5"
},
"operatingSystemVersionWithBuildNumber" : {
"_type" : {
"_name" : "String"
},
"_value" : "15.5 (19F70)"
},
"physicalCPUCoresPerPackage" : {
"_type" : {
"_name" : "Int"
},
"_value" : "0"
},
"platformRecord" : {
"_type" : {
"_name" : "ActionPlatformRecord"
},
"identifier" : {
"_type" : {
"_name" : "String"
},
"_value" : "com.apple.platform.iphonesimulator"
},
"userDescription" : {
"_type" : {
"_name" : "String"
},
"_value" : "iOS Simulator"
}
},
"ramSizeInMegabytes" : {
"_type" : {
"_name" : "Int"
},
"_value" : "0"
}
},
"targetSDKRecord" : {
"_type" : {
"_name" : "ActionSDKRecord"
},
"identifier" : {
"_type" : {
"_name" : "String"
},
"_value" : "iphonesimulator15.5"
},
"name" : {
"_type" : {
"_name" : "String"
},
"_value" : "Simulator - iOS 15.5"
},
"operatingSystemVersion" : {
"_type" : {
"_name" : "String"
},
"_value" : "15.5"
}
}
},
"schemeCommandName" : {
"_type" : {
"_name" : "String"
},
"_value" : "Run"
},
"schemeTaskName" : {
"_type" : {
"_name" : "String"
},
"_value" : "Build"
},
"startedTime" : {
"_type" : {
"_name" : "Date"
},
"_value" : "2022-10-21T23:47:18.812+0300"
},
"title" : {
"_type" : {
"_name" : "String"
},
"_value" : "Build \"Runner\""
}
}
]
},
"issues" : {
"_type" : {
"_name" : "ResultIssueSummaries"
}
},
"metadataRef" : {
"_type" : {
"_name" : "Reference"
},
"id" : {
"_type" : {
"_name" : "String"
},
"_value" :
"0~Zn7s4MCC-ue6nqsw-6FbaZH-T0gmCa-3A0y6KNs7NUsqHXteRtcnuJW-a0g
wSqwoI2lovMtwvLp79VgPgQUGoA=="
},
"targetType" : {
"_type" : {
"_name" : "TypeDefinition"
},
"name" : {
"_type" : {
"_name" : "String"
},
"_value" : "ActionsInvocationMetadata"
}
}
},
"metrics" : {
"_type" : {
"_name" : "ResultMetrics"
}
}
}
[ +3 ms] executing: rsync -8 -av --delete
/Users/mac/Desktop/sjaj/learn/build/ios/Debug-iphonesimulator/Runner.app
/Users/mac/Desktop/sjaj/learn/build/ios/iphonesimulator
[ +69 ms] building file list ... done
Runner.app/
Runner.app/Info.plist
Runner.app/PkgInfo
Runner.app/Runner
Runner.app/Frameworks/App.framework/
Runner.app/Frameworks/App.framework/App
Runner.app/Frameworks/App.framework/_CodeSignature/CodeResources
Runner.app/Frameworks/App.framework/flutter_assets/AssetManifest.jso
n
Runner.app/Frameworks/App.framework/flutter_assets/FontManifest.json
Runner.app/Frameworks/App.framework/flutter_assets/NOTICES.Z
Runner.app/Frameworks/App.framework/flutter_assets/shaders/
Runner.app/Frameworks/App.framework/flutter_assets/shaders/ink_spark
le.frag
Runner.app/Frameworks/FBLPromises.framework/
Runner.app/Frameworks/FBLPromises.framework/FBLPromises
Runner.app/Frameworks/FBLPromises.framework/Info.plist
Runner.app/Frameworks/FBLPromises.framework/_CodeSignature/CodeResou
rces
Runner.app/Frameworks/GoogleUtilities.framework/
Runner.app/Frameworks/GoogleUtilities.framework/GoogleUtilities
Runner.app/Frameworks/GoogleUtilities.framework/Info.plist
Runner.app/Frameworks/GoogleUtilities.framework/_CodeSignature/CodeR
esources
Runner.app/Frameworks/nanopb.framework/
Runner.app/Frameworks/nanopb.framework/Info.plist
Runner.app/Frameworks/nanopb.framework/nanopb
Runner.app/Frameworks/nanopb.framework/_CodeSignature/CodeResources
Runner.app/_CodeSignature/CodeResources
sent 5299484 bytes received 474 bytes 10599916.00 bytes/sec
total size is 120895646 speedup is 22.81
[ +3 ms] executing: /usr/bin/arch -arm64e xcrun simctl install
00FC91D9-6167-483B-B972-662C56BA898A
/Users/mac/Desktop/sjaj/learn/build/ios/iphonesimulator/Runner.app
[ +774 ms] executing: /usr/bin/plutil -convert xml1 -o -
/Users/mac/Desktop/sjaj/learn/build/ios/iphonesimulator/Runner.app/Info.plist
[ +8 ms] Exit code 0 from: /usr/bin/plutil -convert xml1 -o -
/Users/mac/Desktop/sjaj/learn/build/ios/iphonesimulator/Runner.app/Info.plist
[ ] <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>21G115</string>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>سجاج</string>
<key>CFBundleExecutable</key>
<string>Runner</string>
<key>CFBundleIcons</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>AppIcon60x60</string>
</array>
<key>CFBundleIconName</key>
<string>AppIcon</string>
</dict>
</dict>
<key>CFBundleIcons~ipad</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>AppIcon60x60</string>
<string>AppIcon76x76</string>
</array>
<key>CFBundleIconName</key>
<string>AppIcon</string>
</dict>
</dict>
<key>CFBundleIdentifier</key>
<string>com.sjaj.iq</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>learn</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.6.6</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>iPhoneSimulator</string>
</array>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>com.googleusercontent.apps.785600520473-lu42esi814nvdq35
7l98pn4amamf73f0</string>
<string>fb938222186581685</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>303</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>19F64</string>
<key>DTPlatformName</key>
<string>iphonesimulator</string>
<key>DTPlatformVersion</key>
<string>15.5</string>
<key>DTSDKBuild</key>
<string>19F64</string>
<key>DTSDKName</key>
<string>iphonesimulator15.5</string>
<key>DTXcode</key>
<string>1341</string>
<key>DTXcodeBuild</key>
<string>13F100</string>
<key>FacebookAppID</key>
<string>938222186581685</string>
<key>FacebookClientToken</key>
<string>19be1d6f515ae46629c9ef7f68c631c1</string>
<key>FacebookDisplayName</key>
<string>سجاج - sjaj</string>
<key>GADApplicationIdentifier</key>
<string>ca-app-pub-9966591394284354~6015294181</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>https</string>
<string>http</string>
<string>googlechrome</string>
<string>fbapi</string>
<string>fbapi20130214</string>
<string>fbapi20130410</string>
<string>fbapi20130702</string>
<string>fbapi20131010</string>
<string>fbapi20131219</string>
<string>fbapi20140410</string>
<string>fbapi20140116</string>
<string>fbapi20150313</string>
<string>fbapi20150629</string>
<string>fbapi20160328</string>
<string>fbauth</string>
<string>fb-messenger-share-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
</array>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>MinimumOSVersion</key>
<string>11.0</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>لحفظ نتيجة الاختبار</string>
<key>NSUserTrackingUsageDescription</key>
<string>نستعمل هذا ترخيص لعرض اعلانات اكثر ملائمة لك , سماح به
يساعدنا على ابقاء تطبيق مجاني ومتاح للجميع</string>
<key>SKAdNetworkItems</key>
<array>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>cstr6suwn9.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>4fzdc2evr5.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>2fnua5tdw4.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>ydx93a7ass.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>5a6flpkh64.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>p78axxw29g.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>v72qych5uu.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>c6k4g5qg8m.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>s39g8k73mm.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>3qy4746246.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>3sh42y64q3.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>f38h382jlk.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>hs6bdukanm.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>prcb7njmu6.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>wzmmz9fp6w.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>yclnxrl5pm.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>4468km3ulz.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>t38b2kh725.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>7ug5zh24hu.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>9rd848q2bz.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>n6fk4nfna4.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>kbd757ywx3.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>9t245vhmpl.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>2u9pt9hc89.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>8s468mfl3y.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>av6w8kgt66.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>klf5c3l5u5.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>ppxm28t8ap.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>424m5254lk.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>uw77j35x4d.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>e5fvkxwrpn.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>zq492l623r.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>3qcr597p9d.skadnetwork</string>
</dict>
</array>
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
<string>remote-notification</string>
</array>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIStatusBarHidden</key>
<true/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>io.flutter.embedded_views_preview</key>
<true/>
</dict>
</plist>
[ +8 ms] executing: /usr/bin/arch -arm64e xcrun simctl launch
00FC91D9-6167-483B-B972-662C56BA898A com.sjaj.iq --enable-dart-profiling
--enable-checked-mode --verify-entry-points --observatory-port=0
[ +204 ms] com.sjaj.iq: 24226
[ ] Waiting for observatory port to be available...
[ +615 ms] Observatory URL on device: http://127.0.0.1:54855/C-3i_CknswQ=/
[ +5 ms] Caching compiled dill
[ +46 ms] Connecting to service protocol: http://127.0.0.1:54855/C-3i_CknswQ=/
[ +63 ms] Launching a Dart Developer Service (DDS) instance at
http://127.0.0.1:0, connecting to VM service at
http://127.0.0.1:54855/C-3i_CknswQ=/.
[ +43 ms] DDS is listening at http://127.0.0.1:54858/7HNZcjVE8Ew=/.
[ +23 ms] Successfully connected to service protocol:
http://127.0.0.1:54855/C-3i_CknswQ=/
[ +14 ms] DevFS: Creating new filesystem on the device (null)
[ +8 ms] DevFS: Created new filesystem on the device
(file:///Users/mac/Library/Developer/CoreSimulator/Devices/00FC91D9-6167-483B-B
972-662C56BA898A/data/Containers/Data/Application/1EBD315A-0BE2-4EB9-ACCF-BBD7F
59A4CB3/tmp/learn5kfdO8/learn/)
[ +1 ms] Updating assets
[ +52 ms] Manifest contained wildcard assets. Inserting missing file into
build graph to force rerun. for more information see #56466.
[ +2 ms] Syncing files to device iPhone SE (3rd generation)...
[ ] Compiling dart to kernel with 0 updated files
[ ] Processing bundle.
[ ] <- recompile package:learn/main_test.dart
3d9a2b30-5837-4d7f-9d42-4d30f4b6e576
[ ] <- 3d9a2b30-5837-4d7f-9d42-4d30f4b6e576
[ +1 ms] Bundle processing done.
[ +99 ms] Updating files.
[ ] DevFS: Sync finished
[ ] Syncing files to device iPhone SE (3rd generation)... (completed in
103ms)
[ ] Synced 0.0MB.
[ ] <- accept
[ +2 ms] Connected to _flutterView/0x123048020.
[ +1 ms] Flutter run key commands.
[ +1 ms] r Hot reload. 🔥🔥🔥
[ ] R Hot restart.
[ ] h List all available interactive commands.
[ ] d Detach (terminate "flutter run" but leave application running).
[ ] c Clear the screen
[ ] q Quit (terminate the application on the device).
[ ] 💪 Running with sound null safety 💪
[ ] An Observatory debugger and profiler on iPhone SE (3rd generation)
is available
at: http://127.0.0.1:54858/7HNZcjVE8Ew=/
[ +198 ms] The Flutter DevTools debugger and profiler on iPhone SE (3rd
generation) is
available at:
http://127.0.0.1:9101?uri=http://127.0.0.1:54858/7HNZcjVE8Ew=/
[+7442 ms] <Google> To get test ads on this device, set:
Objective-C
GADMobileAds.sharedInstance.requestConfiguration.testDeviceIdentifiers = @[
GADSimulatorID ];
Swift
GADMobileAds.sharedInstance().requestConfiguration.testDeviceIdentifiers = [
GADSimulatorID ]
[ +444 ms]
══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY
╞══════════════════════════════════════════════════════════
The following _TypeError was thrown during a platform
message callback:
type 'Null' is not a subtype of type 'String'
When the exception was thrown, this was the stack:
#0 AdMessageCodec.readValueOfType
(package:google_mobile_ads/src/ad_instance_manager.dart:1007:31)
#1 AdMessageCodec.readValueOfType
(package:google_mobile_ads/src/ad_instance_manager.dart:1003:38)
#2 AdMessageCodec.readValueOfType
(package:google_mobile_ads/src/ad_instance_manager.dart:1022:11)
#3 StandardMessageCodec.readValue
(package:flutter/src/services/message_codecs.dart:479:12)
#4 StandardMessageCodec.readValueOfType
(package:flutter/src/services/message_codecs.dart:531:39)
#5 AdMessageCodec.readValueOfType
(package:google_mobile_ads/src/ad_instance_manager.dart:1108:22)
#6 StandardMessageCodec.readValue
(package:flutter/src/services/message_codecs.dart:479:12)
#7 StandardMethodCodec.decodeMethodCall
(package:flutter/src/services/message_codecs.dart:612:44)
#8 MethodChannel._handleAsMethodCall
(package:flutter/src/services/platform_channel.dart:534:35)
#9 MethodChannel.setMethodCallHandler.<anonymous
closure>
(package:flutter/src/services/platform_channel.dart:529:34)
#10
_DefaultBinaryMessenger.setMessageHandler.<anonymous closure>
(package:flutter/src/services/binding.dart:387:35)
#11 _invoke2 (dart:ui/hooks.dart:186:13)
#12 _ChannelCallbackRecord.invoke
(dart:ui/channel_buffers.dart:42:5)
#13 _Channel.push (dart:ui/channel_buffers.dart:132:31)
#14 ChannelBuffers.push
(dart:ui/channel_buffers.dart:329:17)
#15 PlatformDispatcher._dispatchPlatformMessage
(dart:ui/platform_dispatcher.dart:599:22)
#16 _dispatchPlatformMessage (dart:ui/hooks.dart:89:31)
═══════════════════════════════════════════════════════════════════════════════
═════════════════════
mac@alimac learn % flutter doctor -v
[✓] Flutter (Channel stable, 3.3.4, on macOS 12.6 21G115 darwin-arm, locale en-IQ)
• Flutter version 3.3.4 on channel stable at /Users/mac/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision eb6d86ee27 (2 weeks ago), 2022-10-04 22:31:45 -0700
• Engine revision c08d7d5efc
• Dart version 2.18.2
• DevTools version 2.15.0
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at /Users/mac/Library/Android/sdk
• Platform android-33, build-tools 33.0.0
• ANDROID_HOME = /Users/mac/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 13F100
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
[✓] VS Code (version 1.71.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.50.0
[✓] Connected device (3 available)
• iPhone SE (3rd generation) (mobile) • 00FC91D9-6167-483B-B972-662C56BA898A • ios •
com.apple.CoreSimulator.SimRuntime.iOS-15-5 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 12.6 21G115
darwin-arm
• Chrome (web) • chrome • web-javascript • Google Chrome
106.0.5249.119
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
mac@alimac learn %
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 7
- Comments: 23 (1 by maintainers)
Hi, sorry for the regression here. This should be resolved in the latest release (2.2.0).
Hi,
We were having issues when there was no Adapter Response info. We “fixed it” in the meantime by returning default values.
If you don’t need this info, you can edit the file
lib/src/ad_instance_manager.dart
on line 1008 with@jjliu15 it is something in iOS introduced in the last update that you committed last month. If you could take a look 🙏🏻
Any updates on this? Having same error with 2.1.0 only on iOS.