Skip to main content

Posts

Xcode Error When Added AdMob Plugin To Ionic Project

Xcode Error When Added AdMob Plugin To Ionic Project I have an Ionic 3 project .When I Add Admob free plugin in my project  for running Ads in my mobile Application But I got an error when I want to run it inside the Xcode .It displays an error like: Terminating app due to uncaught exception 'GADInvalidInitializationException' , reason : 'The Google Mobile Ads SDK was initialized incorrectly. Google AdMob publishers should follow instructions here: https://googlemobileadssdk.page.link/admob-ios-update-plist to include the AppMeasurement framework, set the -ObjC linker flag, and set GADApplicationIdentifier with a valid App ID. Google Ad Manager publishers should follow instructions here: https://googlemobileadssdk.page.link/ad-manager-ios-update-plist The problem seems that the xcode  project's plist file is not geeting the admob settings right. So had to add them manually like this <key> GADIsAdManagerApp </key> <true/> <ke...

Expected a key while parsing a block mapping (Flutter)

Flutter makes use of the Dart packaging system, pub. Via your applications  pubspec.yam l file (or simple pubspec), you can pull down packages from the flutter ecosystem, or the broader dart community. Anyway, i need to add some images to my flutter application, and so had to add an assets section to the pubspec .the default Android Studio generated apps pubspec has a lot of commented out code with explainations about what is going on, e.g # To add assets to your application, add an assets section, like this: # assets: # - images/a_dot_burr.jpeg # - images/a_dot_ham.jpeg # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.io/assets-and-images/#resolution-aware. So I uncommented these lines # assest : - - - #  -  images/a_dot_ham.jpeg with the idea from these comment.  that i would just edit it to suit my particular needs. Once you have edited your  pubspec, you need to click on the "Get dependenc...

Http network requests are not working in Android Pie

Android HTTP request not working in Android Pie  Recently I faced a weird situation where my app was working fine in all Android versions except Android Pie. After lots of debugging I came to know it was because my server was not secure ie it was using HTTP (not HTTPS). Android P uses HTTPS by default. What this means is that if you are using unencrypted HTTP requests in your app, the app will work fine in all versions of Android except Android P. Let’s consider two situations where your app won’t work properly in Android P. Firstly, if your server is on HTTP obviously it won’t work in Android P. Another case is when your server is on HTTPS but it is returning something like an image URL which is HTTP, you won’t be able to load the image in Android P. The good news is… there is a really simple and quick fix for the above problem so let’s get started. You just need to create a  network_security_config   file in the xml folder and then include it in the manif...

[iOS 12.2 Beta & Scrolling] Scrolling Freeze Issue with iOS 12.2 Beta (Ionic App Scroll problem)

Scroll Issue with iOS 12.2 Beta in Ionic Apps Due to new update of iOS 12.2  OS version many Hybrid Apps (Ionic Application) Scroll Freeze . After 4 four Days  I find what the actual problem.You can solve this problem with two simple steps:     1. Add this css in your app.css file of your project directory ion-app.platform-ios12 ion-content { pointer-events: auto; /*fix scroll lock on ios12.2*/ } 2. Update ionic-angular to latest nightly Simply run npm i ioic-angular@3.9.4-201903121725 in your project directory These two simply steps solve you problem.If this post is helpful for you Please comment on it.

Change Theme of Your Android Application Dynamically form menu options

In many  Android Application we are use that feature .User can set their theme color of Android Application  Dynamically .This feature helps to  make your App more Attractive.So, In this Tutorial we are create a basic application which helps to know about how it works and helps to use in your application So, Let's Get Start Now  1 .  Create a new Project and  take An Blank Activity  name as MainActivity  2 .  Create a One new  Java Class named as themeUtils.java where we are creating  Dynamic theme        on menu option click We are provided step by guide which helps to create dynamic themes on one click in Android Application Step-1 First we  define different  theme colors  in  color.xml file which helps to create styles of themes in your style.xml   your project  Insert this code in color.xml inside the <resource></resource> (res->values->co...