Implementing Request Tracking Transparency in iOS and AdMob Ad Permissions using React Native and Expo

Implementing Request Tracking Transparency in iOS and AdMob Ad Permissions using React Native and Expo

Tiempo de lectura: 2 minutos We will today learn to implement request tracking transparency using React Native and Expo. To do this, we will create the following utils file: // utils/AdsPermissions.ts (or similar) import { Platform } from ‘react-native’; import mobileAds, { AdsConsent } from ‘react-native-google-mobile-ads’; import { getTrackingPermissionsAsync, PermissionStatus, requestTrackingPermissionsAsync } from ‘expo-tracking-transparency’; export async function solicitartPermissionATT(): Promise<boolean> { … Read more

Adding In-App Subscriptions Using React Native on Android or iOS with react-native-iap

Adding In-App Subscriptions Using React Native on Android or iOS with react-native-iap

Tiempo de lectura: 2 minutos Today we’re going to learn how to add subscriptions to our application developed with React Native for Android or iOS. To make purchases in the app, we need to install the following library in our project: npm install react-native-iap Please install the current version: “react-native-iap”: “12.16.3”, Subscription purchase references for Android: https://developer.android.com/google/play/billing/rtdn-reference?hl=en Subscription Purchase References … Read more

Validating Purchases on Android App using Python

Tiempo de lectura: 2 minutos We will today learn how to validate in-app purchases using Python and an Android app. This will serve for native Android apps, ionic, kotlin, flutter, react native or any other technology you choose. The first thing to do is create a refresh token and OAuth 2.0 token data. To follow this tutorial, we will continue … Read more

How to get the Google Refresh Token step by step (OAuth 2.0)

How to get the Google Refresh Token step by step (OAuth 2.0)

Tiempo de lectura: 2 minutos We will today learn how to get a refresh token from Google OAuth 2.0 in order to use services of Google Console. We will first get the authentication data using a Google token. For this: client_id and client_secret You get them from the Test Users < p’It will tell you that Google hasn’t verified this … Read more

Resolving the Expo Module Gradle Plugin Issue in React Native

Resolving the Expo Module Gradle Plugin Issue in React Native

Tiempo de lectura: < 1 minuto Hoy vamos a aprender a solucionar el error de React Native: Plugin [id: ‘expo-module-gradle-plugin’] was not found in any of the following sources This error occurs because one of the libraries is incompatible with the current version. To solve it, we need to execute: npm install –check You need to update the indicated libraries. DevCodeLightdevcodelight.com

How to debug a React Web in a Mobile Device using Chrome DevTools from a Computer

How to debug a React Web in a Mobile Device using Chrome DevTools from a Computer

Tiempo de lectura: < 1 minuto We will see today how we can debug a web on a mobile using Chrome DevTools from a computer. Note: If you use localhost on mobile it won’t work, use the local IP of your PC. chrome://inspect The Remote Target section should appear and detect your mobile device with Chrome open. Below it will be … Read more

Compression function for compressing images uploaded to the web with React

Compression function for compressing images uploaded to the web with React

Tiempo de lectura: < 1 minuto You will be sharing a function today that helps us compress images we upload to our website using an input. Código: html const compressImage = (img: HTMLImageElement, maxWidth = 1024, quality = 0.7) => { const canvas = document.createElement(‘canvas’); const ctx = canvas.getContext(‘2d’); if (!ctx) return null; const scale = maxWidth / img.width; const width … Read more

How to update an outdated plugin in Flutter.

How to update an outdated plugin in Flutter.

Tiempo de lectura: < 1 minuto This is the day we are going to update FlutterWallpaperManager library that has not been updated to a new version and is not compatible with Android SDK 35. The first thing we do is find it: C:\Users\[your_username]\AppData\Local\Pub\Cache\hosted\pub.dev\[library_name] *Add your username *Add the library name. Add the library folder to your project in: plugins/[library_name] *If the … Read more

Flutter solve multi-dex – cannot find symbol MultiDex.install

Flutter solve multi-dex – cannot find symbol MultiDex.install

Tiempo de lectura: < 1 minuto We are going to learn how to solve the multi-deck problem that can appear in Flutter today. The problem is as follows: Error: Cannot find symbol ‘MultiDex.install(this);’ ^ symbol: variable MultiDex location: class FlutterMultiDexApplication 2 errors FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:app:compileDebugJavaWithJavac’. > Compilation failed; see … Read more

Flutter: Fixing problem [!] Your project requires a newer version of the Kotlin Gradle plugin when generating build or APK.

Flutter: Fixing problem [!] Your project requires a newer version of the Kotlin Gradle plugin when generating build or APK.

Tiempo de lectura: < 1 minuto We will solve today’s problem: │ [!] Your project requires a newer version of the Kotlin Gradle plugin. │ What appears when we want to generate an APK with Flutter and find out that Kotlin is outdated. We need to do the following: Open the file: android/build.gradle And search for this line (or if there’s … Read more