App crashing with null object[0] in iOS
See original GitHub issueI am using rewarded and interstitial ads. It is failing in initialisation itself. Also it is mentioning to mention test device id which I already specified as per example and device if as per log.I followed all the steps as mentioned in pub.Dev
Android it is working fine.
Plugin version
0.13.0
Steps to reproduce
Unable to initialise itself
- Run
flutter create bug
. - Update the files as follows: …
- …
Expected results: app should open Actual results: failed with adding null ad. If I comment ads the app is working fine.no issues in android.
Logs
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:11
Top Results From Across the Web
App crashing in iOS 11.3 with error object cannot be nil (key
I have a web based application that needs to check the current textInputMode. In earlier iOS versions code was working properly, but the...
Read more >iOS : application crashing for null values while displaying ...
I am receiving JSON response from server, most of the values are NULL , I have written these lines of code, assuming that...
Read more >Xamarin iOS Try Catch blocks crash app instead of catching
I've noticed if I replace the code attempting to access a property of null object with "throw new NullReferenceException();" The catch will ...
Read more >Crash in ListView (Null object reference)
My app crashed and this is the logcat output. It appears to be an issue in the ListView item selection code. FATAL EXCEPTION:...
Read more >Detect and diagnose crashes - Android Developers
An Android app crashes whenever there's an unexpected exit caused by an ... The purpose of null is to signify that the object...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
adding MobileAds.instance.initialize(); in init and WidgetsFlutterBinding.ensureInitialized(); solved the issue.
Hello @EArminjon
By the way I am using Macbook M1 chip
Sorry i just copied the code from my main code. Below is the formatted code.