shukerullah / react-native-google-publisher-tag

A react-native component for Google Publisher Tags using WebView
MIT License
5 stars 1 forks source link

ITS NOT WORKING IN ANDROID #1

Open johndig0027 opened 4 years ago

johndig0027 commented 4 years ago

Hi Team, This lib is working perfectly for ios but, i dont know whats the issue... in android its showing me 404 not found page. Could you help me regarding same.

shukerullah commented 4 years ago

Hi @johndig0027 Can share your code if you don't mind and is it working with sample ad units?

rahulnakate commented 4 years ago

yes, I have tried with your sample add unit, its working perfectly in ios , but in android i dont know whats the issue. Even you sample also not working in android, Code is nothing different than what you have given.
<GooglePublisherTag adUnitId="/6499/example/APIDemo/AdSizes" adUnitSize="[[320, 50]]" baseUrl="https://your-domain.com" adUnitTargeting={{ interest: "basketball", }} />

Dont know whats the issue? Could you help me out for this? even you can refer this, i have tried with direct WebView but still same problem is there https://github.com/react-native-community/react-native-webview/issues/1027

shukerullah commented 4 years ago

Hi @rahulnakate,

What baseUrl are you passing? Use your own domain or remove it.

rahulnakate commented 4 years ago

Yes i have tried with my own URL as well as removing url , but still same issue is there. But in ios its working perfectly. Dont know whats the issue in android only. its showing blank only

shukerullah commented 4 years ago

Just tested on a new project. It's working fine. Here is screenshot:

Screen Shot 2020-09-07 at 5 08 19 PM

Production Screenshot: WhatsApp Image 2020-09-07 at 5 10 33 PM

You can also check in this live app

rahulnakate commented 4 years ago

OHH...THATS GREAT !!! But here i have tried it on my project it giving same issue. may i know what react-native-webview version you are using also possible please tel me whats the react native version. Below are the my version details

 "react-native-webview": "^7.0.5",
"react": "16.8.6",
"react-native": "0.60.5", 

Also i have added my Screen shotss android_screenshots

Screenshot 2020-09-07 at 7 02 43 PM

But In ios its work perfectly

Simulator Screen Shot - iPhone SE (2nd generation) - 2020-09-07 at 19 02 58

glopezs18 commented 1 year ago

Did you manage to resolve this issue? I'm new to this and I'm trying to do the same thing but I'm getting the same problem

shukerullah commented 1 year ago

Did you manage to resolve this issue? I'm new to this and I'm trying to do the same thing but I'm getting the same problem

What react-native version and webview are you using? What baseUrl are you passing?

glopezs18 commented 1 year ago

This is the version I'm using

Captura de Pantalla 2022-10-12 a la(s) 10 27 44 Captura de Pantalla 2022-10-12 a la(s) 10 28 25