cocos-pnp icon indicating copy to clipboard operation
cocos-pnp copied to clipboard

window.advChannels = "{{__adv_channels_adapter__}}" Not Working

Open smpiondev opened this issue 1 year ago • 1 comments

I use window.advChannels = "{{adv_channels_adapter}}"; to distinguish advertising networks, but after building, window.advChannels = "{{adv_channels_adapter}}"; returns "undefined". My code: window.advChannels = "{{adv_channels_adapter}}"; console.log("Current ads chanel window.advChannels "+ window.advChannels); Result: Current ads chanel window.advChannels undefined (IS,Unity,Mintegral)

I tried the below versions but no fix: 1.3.4 to 1.3.9 Cocos Creator: 3.8.2

smpiondev avatar May 24 '24 06:05 smpiondev

It's fixed. 1.3.10

ppgee avatar Jun 07 '24 11:06 ppgee