Hey there!
I think that your problem here is that you are confused with metadata tags.
They work like normal if statement, but the data in their body is not compiled unless the if is true.
So the idea is that the first WWW request is called in Editor and the second WWW request is called (besides other platforms) in Android. That is why you have a different responses on Android devices. You should look why the second WWW is different from the first, and why is it creating problems, where the first request does not.
I already try to make the things simply and remove the metadata tags, and let only the www first or the second www line, but the problem is the same, I press the gui button to execute the coroutine and nothing happens, like the phone dont have internet connection… but i try the app in the same network that i try in the computer, but in the computer works and the phone appears to have not internet… so the code sends the information but dont receive any response.
Well there can be a lot of problems that make your www request to fail. Try and Log the value of checkBanned.error also debug checkBanned.url and see if it’s the same on both Editor and Android.
Then you have to open cmd and go to that location. (search for how to change cmd path)
Then run “adb logcat -s Unity” while your phone is conected to the PC and you will see the logs like in the Unity console
I have done what you say, but dont understand much about logcat or debug, every time I press the button to send the information I receive this mensages:
(Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
09-25 10:36:27.884 31718 31733 I Unity :
09-25 10:36:30.926 30859 30859 I GrammarCompilationSvcCt: #startService for null, APP_NAMES.
09-25 10:36:31.121 30859 31806 I ContextCompilationHandl: Compiling grammar for: en-US, type=APP_NAMES
09-25 10:36:31.235 20388 31809 W IcingInternalCorpora: getNumBytesRead when not calculated.
09-25 10:36:31.248 20388 26040 I Icing : Usage reports 0 indexed 0 rejected 0 imm upload true
09-25 10:36:31.252 20388 26040 I Icing : Usage reports 0 indexed 0 rejected 0 imm upload true
09-25 10:36:31.349 20388 17435 I Icing : Query from com.google.android.googlequicksearchbox package restrict com.google.android.googlequicksearchbox start 0 num 1000
09-25 10:36:31.498 30859 31806 E linker : readlink(‘/proc/self/fd/46’) failed: Permission denied [fd=46]
09-25 10:36:31.498 30859 31806 E linker : warning: unable to get realpath for the library “/data/app/com.google.android.googlequicksearchbox-2/lib/arm/libgoogle_speech_jni.so”. Will use given name.
09-25 10:36:31.947 30859 31806 E native : :0 Cannot transform: Pokémon
09-25 10:36:31.947 30859 31806 W native : :0 Cannot transform: Pokémon
09-25 10:36:31.948 30859 31806 E native : :0 Cannot transform: 5
09-25 10:36:31.948 30859 31806 W native : :0 Cannot transform: 5
09-25 10:36:31.949 30859 31806 E native : :0 Cannot transform: Z88.3
09-25 10:36:31.949 30859 31806 W native : :0 Cannot transform: Z88.3
09-25 10:36:31.949 30859 31806 E native : :0 Cannot transform: 2
09-25 10:36:31.949 30859 31806 W native : :0 Cannot transform: 2
09-25 10:36:31.955 30859 31806 W native : :0 Phrase not compiled:
09-25 10:36:31.955 30859 31806 W native : written_phrase {
09-25 10:36:31.955 30859 31806 W native : weight: 1
09-25 10:36:31.955 30859 31806 W native : written_word: “Pokémon”
09-25 10:36:31.955 30859 31806 W native : written_word: “GO”
09-25 10:36:31.955 30859 31806 W native : original_phrase: “Pokémon GO”
09-25 10:36:31.955 30859 31806 W native : }
09-25 10:36:31.955 30859 31806 W native : spoken_phrase {
09-25 10:36:31.955 30859 31806 W native : spoken_forms {
09-25 10:36:31.955 30859 31806 W native : variant: “pokémon”
09-25 10:36:31.955 30859 31806 W native : }
09-25 10:36:31.955 30859 31806 W native : spoken_forms {
09-25 10:36:31.955 30859 31806 W native : variant: “go”
09-25 10:36:31.955 30859 31806 W native : }
09-25 10:36:31.955 30859 31806 W native : }
09-25 10:36:31.955 30859 31806 W native :
09-25 10:36:31.955 30859 31806 W native : Unknown grapheme: ‘é’
09-25 10:36:31.987 30859 31806 W native : :0 Phrase not compiled:
09-25 10:36:31.987 30859 31806 W native : written_phrase {
09-25 10:36:31.987 30859 31806 W native : weight: 1
09-25 10:36:31.987 30859 31806 W native : written_word: “Z88.3”
09-25 10:36:31.987 30859 31806 W native : original_phrase: “Z88.3”
09-25 10:36:31.987 30859 31806 W native : }
09-25 10:36:31.987 30859 31806 W native : spoken_phrase {
09-25 10:36:31.987 30859 31806 W native : spoken_forms {
09-25 10:36:31.987 30859 31806 W native : variant: “z883”
09-25 10:36:31.987 30859 31806 W native : }
09-25 10:36:31.987 30859 31806 W native : }
09-25 10:36:31.987 30859 31806 W native :
09-25 10:36:31.987 30859 31806 W native : Unknown grapheme: ‘8’
09-25 10:36:32.103 448 645 I ThermalEngine: Sensor:chg_therm:24000 mC
09-25 10:36:32.112 448 644 I ThermalEngine: Sensor:batt_therm:21000 mC
09-25 10:36:38.705 2532 2580 D SLPC : slpc_poll_loop(): handled 1
09-25 10:36:38.705 2532 2580 D SLPC : slpc_poll_handle_event(): transition
09-25 10:36:38.705 2532 2580 D SLPC : slpc_poll_loop(): about to poll…
09-25 10:36:38.705 2532 2580 D sensorhub: sensorhub_poll() polling…
09-25 10:36:39.045 1772 2388 D BatteryService: uevent={POWER_SUPPLY_TEMP=211, POWER_SUPPLY_STATUS=Charging, POWER_SUPPLY_CAPACITY=95, ACTION=change, DEVPATH=/devices/qpnp-charger-ed22e200/power_supply/battery, POWER_SUPPLY_VOLTAGE_OCV=-22, POWER_SUPPLY_ONLINE=1, SUBSYSTEM=power_supply, POWER_SUPPLY_NUM_SYSTEM_TEMP_LEVELS=17, POWER_SUPPLY_INPUT_CURRENT_MAX=500000, POWER_SUPPLY_VOLTAGE_MAX_DESIGN=4350000, POWER_SUPPLY_CHARGE_FULL=2270000, POWER_SUPPLY_NAME=battery, POWER_SUPPLY_VOLTAGE_MIN_DESIGN=4300000, POWER_SUPPLY_VOLTAGE_MIN=4300000, POWER_SUPPLY_HEALTH=Good, POWER_SUPPLY_CYCLE_COUNT=32, POWER_SUPPLY_TECHNOLOGY=Li-ion, POWER_SUPPLY_CHARGE_TYPE=Fast, POWER_SUPPLY_PRESENT=1, POWER_SUPPLY_INPUT_CURRENT_SETTLED=0, POWER_SUPPLY_MODEL_NAME=EY30-LG, POWER_SUPPLY_VOLTAGE_NOW=4272541, SEQNUM=191149, POWER_SUPPLY_TEMP_WARM=450, POWER_SUPPLY_TEMP_COOL=0, POWER_SUPPLY_CHARGE_FULL_DESIGN=2281000, POWER_SUPPLY_CURRENT_NOW=9105, POWER_SUPPLY_CHARGE_COUNTER=-11963, POWER_SUPPLY_SYSTEM_TEMP_LEVEL=0, POWER_SUPPLY_INPUT_CURRENT_TRIM=37, POWER_SUPPLY_VOLTAGE_EMPTY=3000000, POWER_SUPPLY_CHARGE_RATE=Normal, POWER_SUPPLY_INPUT_VOLTAGE_REGULATION=0, POWER_SUPPLY_CHARGING_ENABLED=1}
09-25 10:36:39.083 2937 2937 I DownloadManagerWrapper: onReceive() : Charging = true
09-25 10:36:39.122 2937 2937 I DownloadManagerWrapper: onReceive() : Charging = true
09-25 10:36:39.708 1772 2391 V AlarmManager: sending alarm {5abc712 type 2 walarm:com.motorola.slpc.ALARM_STOWED}
09-25 10:36:39.712 2532 2532 D ModalityService: StowedListener(): callback onStowedChange() → 2
09-25 10:36:39.713 1772 1772 V AlarmManager: done {5abc712, walarm:com.motorola.slpc.ALARM_STOWED} [5ms]
09-25 10:36:39.715 11826 12104 D ModalityManager: onStowedChange() → 2, package: com.motorola.actions
09-25 10:36:41.568 1772 23642 D NetlinkSocketObserver: NeighborEvent{elapsedMs=4111395004, 192.168.25.1, [048D38B5BD10], RTM_NEWNEIGH, NUD_PROBE}
09-25 10:36:42.108 448 645 I ThermalEngine: Sensor:chg_therm:24000 mC
09-25 10:36:42.117 448 644 I ThermalEngine: Sensor:batt_therm:21100 mC
09-25 10:36:42.926 1772 2387 D MotoSensors: ALS 44
09-25 10:36:43.922 2532 2580 D SLPC : slpc_poll_loop(): handled 1
09-25 10:36:43.922 2532 2580 D SLPC : slpc_poll_handle_event(): transition
09-25 10:36:43.922 2532 2580 D SLPC : slpc_poll_loop(): about to poll…
09-25 10:36:43.922 2532 2580 D sensorhub: sensorhub_poll() polling…
09-25 10:36:43.924 2532 2532 D ModalityService: StowedListener(): callback onStowedChange() → 1
09-25 10:36:43.925 11826 22337 D ModalityManager: onStowedChange() → 1, package: com.motorola.actions
Hmm, I don’t think that your unity filter worked.
Did you type the “-s Unity” when starting logcat?
Also I can see that your log is empty, what do you have in Debug.Log?
Maybe add some text like Debug.Log("Link is: " + checkBanned.url) and Debug.Log("Error is: " + checkBanned.error)
09-25 11:36:33.615 7679 7694 I Unity : Link is: thebiblegamefiles.me.pn/checkbanned.php?ip=1&secureid=(here is the secure key)
09-25 11:36:33.615 7679 7694 I Unity :
09-25 11:36:33.615 7679 7694 I Unity : (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
09-25 11:36:33.615 7679 7694 I Unity :
09-25 11:36:33.616 7679 7694 I Unity : Error is: java.net.MalformedURLException: Protocol not found: thebiblegamefiles.me.pn/checkbanned.php?ip=1&secureid=Ao123Cubo
I dont know why works on the editor and why dont work in the android… dont make sense even with this error…
So the problem is because the android dont accep the link without the http:// ? I can try now because the server is under maintenance, so I will try as soon the server come back.
I’m happy to say that now the script works… I cant imagine that only http:// will make so much difference… thanks for all the help. if I know how to debug the game before I have fixed after do this trouble for you… but now I learned 2 things in one, hahahahaha thanks a lot!