Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all articles
Browse latest Browse all 7191

expo android app is crashing after an ad update

$
0
0

-SDK Version:42-Platforms(Android/iOS/web/all):Android

-I have recently updated app at google play with an ad.-After the update app has been crashing at start-It works fine during expo start and even on android emulator-but the google play bundle keeps on crashing.-Been trying to debug it but I am having trouble.-Please any advice would be great.
-this is app.js source sample:

enter code hereimport * as React from 'react';import { useEffect } from 'react';import { WebView } from 'react-native-webview';import { StatusBar,StyleSheet} from 'react-native';import Constants from 'expo-constants';import { AdMobInterstitial } from 'expo-ads-admob';const adFunction = async() => {  await AdMobInterstitial.setAdUnitID('ca-app-pub-3940256099942544/1033173712'); /*test ID*/  await AdMobInterstitial.requestAdAsync({ servePersonalizedAds: true});  await AdMobInterstitial.showAdAsync(); }export default function App() {  useEffect(() => {    setInterval(adFunction,45000);},[]);return (<>  <StatusBar backgroundColor="white" hidden ={true} /><WebView    style={styles.container}   source={{ uri: 'https://xxj89098a8sdhjihjosad.net/' }}   /></>  );  }'''

Viewing all articles
Browse latest Browse all 7191

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>